Reset Select Field
My form is coming along nicely. I really like this product.
I need to reset a select (drop down) field on the edit page. I have 2 choices users can choose from when they fill out the form "A" or "B". I need to clear the value when they edit the form to force my workflow to resend an email.
When I try to clear the field using: fd.field('Status').control().value(""), it shows empty. However, after I save the form, the field still has the value "A". I also tried using a class $(".SelectStatus").val(""), but that was the same result.
I need to reset a select (drop down) field on the edit page. I have 2 choices users can choose from when they fill out the form "A" or "B". I need to clear the value when they edit the form to force my workflow to resend an email.
When I try to clear the field using: fd.field('Status').control().value(""), it shows empty. However, after I save the form, the field still has the value "A". I also tried using a class $(".SelectStatus").val(""), but that was the same result.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hello,
I can recommend here to add a new option for your status 'Empty' and make it default in the column settings. Then if you wish to clear the status just select this new option by using the following script:
I can recommend here to add a new option for your status 'Empty' and make it default in the column settings. Then if you wish to clear the status just select this new option by using the following script:
Code: Select all
fd.field('Status').control().value('Empty');
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests