on 2024 Oct 21 10:18 AM
Creating a form in SFP, I do not find where I can prevent the output of a text field if it is empty. I do not want the field to occupy space in the floating area when it is empty.
I tried to set a condition on the field in the context, but in the output I see that it still occupies space on the page. This makes the output look ugly.
What I am looking for is a similar thing to an "alternative" in SmartForms, where I can omit parts of the layout depending on certain values in the parameters. Can anybody help?
Request clarification before answering.
I don't get it to work. I created the following script on the text field I want to hide:
data.Main.ACTIONS_5D_TO_7D.DATA.ITEM.d5_7_header.LongTextHeader.Subtitle::ready:form - (JavaScript, client)
if ($.rawValue == null) then
$.presence = "invisible"
endif
But it has no effect. Did I use the wrong event?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
change type to Formcalc or use the corresponding Javascript
if (this.rawValue == null) { this.presence = "invisible" }
User | Count |
---|---|
86 | |
11 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.