Hi all,
I need to load some fields in Forms, because after going through a workflow these fields stop showing.
The first image shows the form before the workflow
And the second one after the workflow
Hi all,
I need to load some fields in Forms, because after going through a workflow these fields stop showing.
The first image shows the form before the workflow
And the second one after the workflow
Hi Edgar,
The first thing I would recommend is adding a Track Tokens activity to the end of the relevant workflow, this way you can be assured those values are available in the workflow in the first place.
I noticed that the Producto and Desc Sucursal fields are read-only on the first form--is read-only being set via the checkbox on the Layout tab in Forms? If so, this might be the source of your problem. I would recommend setting those fields to read-only after the form loads, via JavaScript. If you need some help with the JavaScript, let me know. You can also search Answers for other threads on this topic (it comes up fairly frequently).
~Rob
Hi Rob
Thank you for your answer, I effectively go tokens that take the data correctly, the fields if they are read only from the field configuration, how can I do it from JavaScript?
The first thing you will need to do is uncheck the "Read-only" checkbox and add a CSS class to both fields (found under the Advanced tab):
I'd recommend assigning the class 'producto' to the Producto field and 'descsucursal' to the Desc Sucursal to keep things clear, as seen above.
Then, add the following snippet to the JavaScript area of the CSS and JavaScript tab:
(function() { $(document).ready(function() { $('.producto select, .descsucursal select').attr('disabled', 'disabled'); }); })();
I tested this out and it worked in my environment, with the values persisting to the next user task:
I hope this gets you squared away!
~Rob