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

Question

Question

javascript calculation not stored into repository

asked on August 18, 2016 Show version history

Hi All,

 

I have some javascript calculation in my final forms before storing to repository. All the fields are read-only. But after i submited the form and save to the repository. When i login to the client and take a look at the forms, i realize my table data(Using javscript calculation was empty.

 

I'm not sure why. Will anyone be able to advise me on this?

 

Thank you

0 0

Answer

SELECTED ANSWER
replied on August 18, 2016

For security reason,  for read only fields, only the values configured in default value or populated using Forms calculation or lookup rule will be submitted. So value populate using custom JavaScript won't be submitted.

You can have either keep the fields as read only and change from JavaScript calculation to Forms out-of-box Calculation or 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 18, 2016

Why do read-only fields get the disabled attribute? That's what prevents them from submitting their value.

Can you guys change the functionality so that there are two different checkboxes, one that says "Read-only" (for the readonly attribute) and one that says Disabled (for the disabled attribute)?

I think this would make the behavior a lot more user-friendly and predictable.

1 0
replied on August 21, 2016

Hi Xiuhong,

 

you are right. thanks for your helps

 

Jason

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.