Make fields on Modal Widget mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 10:10 AM
Hi,
I have created a Widget modal that pops up with a form and it is working. What I am trying to do is make the fields mandatory so that before they hit the Save button the user will have filled out all the appropriate fields. I have added the required tag in the HTML, but that doesn't stop them from saving.
I want to make the Save button disabled until all the fields have been completed.
I am unsure how to include that in my Client Controller script. This is what I have for my script.
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 10:17 AM
Hi,
Please refer below article might be helpful to you
https://stackoverflow.com/questions/32062051/how-to-make-submit-button-disabled
Please mark my response as correct answer or helpful if applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 11:19 AM
I am not using a form action in this. It is just HTML with input fields and then on click of Save, the field values are passed to the ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 07:49 PM