Removing dropdown value
Posted by Jaydius - Feb 15 ’16 at 08:55
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.
-
rostislavModeratorMember for: 7 years 16 days
Your assumption is correct, see http://formsdesigner.blogspot.com/2013/04/getting-and-setting-sharepoint-form.html
Displaying 1 to 1 of 1 messages