Removing dropdown value

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Jaydius
Posts: 43
Joined: Thu Nov 12, 2015

15 Feb 2016

Im wanting to remove a value in a dropdown list based on choices made on the form. Im not having any luck using the following code:


$("#WorkOrderType option[value='Preventative Maintenance']").remove();


Im assuming the issue is in how im calling the form field/dropdown list. Looking at the code of the rendered form, the dropdown list id is a different value (a very long one at that). I assume I need to call the fd.form function to get the correct form field.

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

16 Feb 2016

Your assumption is correct, see http://spform.com/forms-designer- ... eld-values

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests