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

Question

Question

Some conditions do not work in completed form

asked on May 3, 2018

Hello Everybody,

Looking for some help to figure out what is wrong with my form. Part of it uses 3 fields:

1. Single line field - lineprelimApproval which set to 1 on specific limits;

2. Single line field - limitsApproved set to yes when limits are approved;

3. Custom HTML - set to empty, Limits approved or Not Approved depending on the combination of first two fields.

Populating Custom HTML with next code:

document.getElementById("q5").innerHTML = ($('.prelimApproval input').val() == '0') ? '' :
  	($('.limitsApproved input').val()=='yes') ? 'LIMITS PRE-APPROVED' : 'NOT APPROVED';

Results:

- on form submitting page - screenshot submitting - works correctly;

- on approval - screenshot approval - still correct;

- on the completed form view (completed) - second condition does not work.

Could you please help with this puzzle?

submitting.png
approval.png
completed.png
submitting.png (37.08 KB)
approval.png (37.3 KB)
completed.png (250.38 KB)
0 0

Answer

SELECTED ANSWER
replied on May 6, 2018

Hi Vladimir,

There is no "input" element on the completed form view.

You need to update your custom script to find the field as plain text.

See reference: 

https://answers.laserfiche.com/questions/138358/Dynamic-Custom-HTML-Field--Not-Updating-On-Form-Submission

https://answers.laserfiche.com/questions/122818/CSS-not-saving-to-laserfiche

0 0

Replies

replied on May 7, 2018

Thank you so much for pointing to the answer

Best Regards,

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

Sign in to reply to this post.