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

Question

Question

form looks different after submitting

asked on August 23, 2016 Show version history

The problem is that the text values and radio button values are not showing correctly.  Here is the form filled out:

But this is what is presented like after the submit button is clicked:

 

 

0 0

Replies

replied on August 23, 2016

It looks like the fields in question are marked as read-only. Is that correct?

0 0
replied on August 23, 2016

Do you do the calculation using Forms' out of box calculation or using custom JavaScript? If you are using customize JavaScript, the value won't be submitted for field marked as read-only for security reason. You can uncheck the "read-only" option from the field settings but use JavaScript to set it read-only as following:

$('.readonly input').attr("readonly","true");

0 0
replied on August 24, 2016

Yes, the Text field was a read only field and I unselected that option and used the jquery

$('.readonly input').attr("readonly","true");

 

That fixed the issue with that field.

The radio field is required, but I am changing whether an option is disabled with jquery.

      document.getElementById('Field151-0').disabled = false;
      document.getElementById('Field151-1').disabled = true; 

 

0 0
replied on August 24, 2016

Set the radio button with disabled attribute will make the value not be submitted.(http://www.w3schools.com/tags/att_input_disabled.asp). And radio button element has no readonly attribute. You can change your script to set the radio button option to be enabled when it is selected to avoid this issue.

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

Sign in to reply to this post.