Setting Field Values on Hidden Sections
I have an odd situation and I hope I can explain it well enough to get some insight from the community.
I have an eForm with multiple sections. When the form loads, some of the sections are hidden. Also at Load Time there is an auto-lookup that executes to set some field values on the hidden sections of the form.
The users answer some questions on the first section of the form and then when they click "Next", the section display rules determine which additional sections are displayed to the user. Depending on how the user answered the questions, the section where the auto-lookup set field values may not be displayed.
What I am seeing is that if the section never gets displayed and the user navigates to the end of the form and submits it, the field values that were set by the lookup do not get saved in the process schema. But if the section does get displayed while the user is navigating through the form, then the field values do get saved in the process schema.
Is this happening because the section never gets rendered on the screen? Even though the user never sees the section of the form, I still need for the values to be saved in those fields for later use in processing.
-
That's my understanding. That non-displayed (not enabled) sections or subforms are not processed.
I assume you have tried duplicating the values in hidden fields on the form, then on the next form load rules if the main fields are not populated copying the values from the hidden fields.
It leaves a bloated form, but it seems to work.
Phread
-
One thing I discovered while doing some testing this morning. My form has a "Save" button on it to allow the users to save changes they make to the data on the form without submitting it. Since these hidden fields are being set at form load time, I found that if I clicked the "Save" button immediately after the form loads, then the values that were set in the hidden fields do get saved in the process schema.
So I am wondering if it might be possible to trigger the "Save" action via JavaScript? If so, I could have the Auto-Lookup execute the JavaScript after lookup completion.
サインインしてコメントを残してください。
コメント
3件のコメント