Page 1 of 1

Reset Select Field

Posted: 30 Oct 2013
by srallen4
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.

Re: Reset Select Field

Posted: 01 Nov 2013
by Dmitry Kozlov
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:

Code: Select all

fd.field('Status').control().value('Empty');