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

Question

Question

Saved forms not displaying correctly

asked on August 7, 2017

On the recent versions of Forms (10.2.1) is there a good way to persist changes to non-field html? I've seen this, but hoping there's a better answer now.

I have a drop-down with "text below field" that provides instructions based on the choice made. The text is saved in a hidden placeholder field, then moved to the "text below" by javascript, and it's firing correctly whenever the form loads, but not when it's being saved.

I've tested this quite a bit with the preview immediately after submitting the form--getting the event to fire doesn't seem to be the issue; the problem is that the placeholder doesn't have any value when it does. Specifically:

$('.placeholder input').val()

returns undefined

0 0

Answer

SELECTED ANSWER
replied on August 7, 2017

Hi Scott,

When save form to repository, the form would be transformed to read-only form so there is no "input" element on form. $('.placeholder input') returns nothing.

If it's a single line field, you can use $('.placeholder .ro').text() instead.

And use if ($('[name=IsLocked]').val() == 'True') to check if form is read-only or not.

You can refer to https://answers.laserfiche.com/questions/122818/CSS-not-saving-to-laserfiche which is similar issue.

Besides, if you are using field rule to hide the field, make sure it has the "save the data when field hidden" option.

0 0

Replies

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

Sign in to reply to this post.