Reset Select Field

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
srallen4
Posts: 12
Joined: Mon Oct 14, 2013

30 Oct 2013

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

01 Nov 2013

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');

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests