How can I make the whole form read only in Java script without selecting individual fields? Is it possible to make entire form read only?
Thanks
Priya
How can I make the whole form read only in Java script without selecting individual fields? Is it possible to make entire form read only?
Thanks
Priya
Hi Priya,
Here's some Javascript I got working to your description:
$(document).ready(function () { $('.cf-page input').each(function () { $(this).attr('readonly', 'True').addClass('readonly'); }) });
Edit: Note that adding sections also makes it easier to make multiple fields read-only. If you're not using any sections at all, you can have a hidden section at the top of your form and check "Read-only" under section options.
Thanks, will try.
Priya
Instead of making the whole form read-only, can this code be customized to make a few fields read-only? I noticed that workflow is not processing my fields that are manually set to read only, i'm hoping by having JS set them as read only, WF will pick the contents.
Does it have to be in JavaScript? There is an option when configuring a User Task to make the entire form Read-Only for that user task. Would that work?
Thanks. We are seeing some issues in Forms 10.2.1 when we use that option in User Task. So, we would like to make the whole form read only in Java script.
Thanks
Priya
What types of fields are on your form?
Also, I'm curious what kinds of issues you are seeing when using that option?
Thanks. The field rules are not working properly if we set that option. Thanks.
Priya
What types of fields are on your form?