jperdior
I'm new here

Error with LABEL tag in FS 5.0 in FS_LIST

Jump to solution

Good morning,

I am having some problems with a dinamic label in a form in FS 5.0 that seems to not appear in FS 5.1.

The <label> tag is like this:

<LABEL lang="DE">

                      if(#item.st_radiobutton_2.getValue().equals("1"),"● ","○ ") +

                      if(

                                                  !#item.st_text_12.empty(),

                                #item.st_text_12,

                                if(

                                          !#item.st_text_4.empty(),

                                          #item.st_text_4.toText(false).trim(),

                                          "unbenannt"

                                )

                      ) +

                      if(!#item.st_text_3.empty()," (intern: " + #item.st_text_3 + ")")

</LABEL>

The line marked as red is the one that throws the following error when editing the content:

http://i.imgur.com/50Gsf25.png

The field st_text_12 is making reference to this field in another section template:

<CMS_INPUT_TEXT

        name="st_text_12"

        allowEmpty="yes"

        convertEntities="standard"

        hFill="yes"

        maxInputLength="200"

        noBreak="no"

        useLanguages="no">

        <LANGINFOS>

          ...

        </LANGINFOS>

      </CMS_INPUT_TEXT>

If I take out the line it works but no the functionality I want and this problems it's not appearing in FS 5.1

Anybody have found the same problem or knows what could be the problem?

Thanks and regards!

0 Kudos
1 Solution

Accepted Solutions

P.S.:

Have you tried it with "!#item.st_text_12.isEmpty()," ?


View solution in original post

0 Kudos
3 Replies
MichaelaReydt
Community Manager

Hello Julio,

unfortunately you posted the exception as a picture. So I am not able to copy it and I can't check if there is already a similar posting in our internal system.

May I ask you to post the exception again as text?

Best regards

Michaela

0 Kudos

P.S.:

Have you tried it with "!#item.st_text_12.isEmpty()," ?


0 Kudos
rednoss
I'm new here

Hello Julio,

did Michaela's answer helped you or do you need further assistance? In case that Michaela's answer helped you, please mark the right answer as correct.

Best regards,

Rene

0 Kudos