Search the FirstSpirit Knowledge Base
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:
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!
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
P.S.:
Have you tried it with "!#item.st_text_12.isEmpty()," ?
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