You are viewing limited content. For full access, please sign in.

Question

Question

LFForm.hideFields - Save data when hidden

asked on September 18, 2024

I use the LFForm.hideFields function to hide a list of fields in Javascript in the Forms New Designer.

example: LFForm.hideFields({ fieldId: 122 });

I don't see the option to "Save data when hidden" - it defaults to "Ignore data when hidden"
Is there an option to the function to "Save data when hidden"?

I know I can set it but using the forms rules but I like to keep the rules to a minimum to keep it readable.

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on September 24, 2024

I wasn't expecting that. I did confirm that hiding the Task Comment Box and ignoring the data makes all JS hide fields call ignore the data as well. I've added this to our backlog ref #545488

0 0

Replies

replied on September 20, 2024

I think I found how to replicate the issue.  

I created a new form using the template "Form Approval Process"
I created the fields below and added the two javascript lines to hide the text fields.
Then added the rule below:
 


If I disable this rule, the data is saved in the hidden fields.
If I set this rule to "save data when hidden", the data is saved in the hidden fields.

Can you try replicating the issue with the above rule?

1 0
APPROVED ANSWER SELECTED ANSWER
replied on September 24, 2024

I wasn't expecting that. I did confirm that hiding the Task Comment Box and ignoring the data makes all JS hide fields call ignore the data as well. I've added this to our backlog ref #545488

0 0
replied on September 19, 2024

I am not able to reproduce this. LFForm.hideFields saves values on submission. Do you have a field rule for those fields that is set to not save even though you are changing visibility through JS?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.