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

Question

Question

Read only variables from Form not available in workflow

asked on October 13, 2017 Show version history

I have an employee evaluation form that as a reviewer fills out, javascript picks up the rankings, summarizes and scores the results into a table on another page of the form.   

If I make the summary table fields read only (as we need it) the variables are not available in workflow.   In my workflow I can iterate over the table rows, and workflow sees the correct number of rows, but the data fields are empty.   If the table fields are not read only, everything works fine.

Are read only form variables really not available to workflow?   Is there any work around for this?

Forms Version: Version 10.2.1.157  Workflow: 10.2.0.202

Thanks,

Andrew

0 0

Answer

SELECTED ANSWER
replied on October 13, 2017

Apparently read only table fields filled via javascript do not have the data carried forward.   The fields need to be set read only via javascript.

https://answers.laserfiche.com/questions/81132/Tables-filled-via-javascript-do-not-carry-their-data-into-next-approval-step#81168

1 0

Replies

You are not allowed to reply in this post.
replied on October 13, 2017

Hi Andrew,

It sounds like you checked the 'read-only' checkbox for the field in the field options. This not only makes the field read-only, but also adds the disabled attribute to the field, preventing the value from being submitted. 

The workaround is to use JavaScript to set the readonly attribute instead of using the checkbox

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

 

You are not allowed to follow up in this post.

Sign in to reply to this post.