Remove a value from a dropdown

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Dars
Posts: 12
Joined: Thu Apr 07, 2016

08 Apr 2016

Hello,

I'm trying to remove a value from a dropdown on a User-defined rule edit form.
I add the following javascript code:
$("#Statut option[value='Fermé']).Remove;

"Statut" is my sharepoint list field.
It's not working. What am I doing wrong?
Thank you!

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

11 Apr 2016

Hello,

Code: Select all

fd.field('Statut').control()._el().find('option[value="Fermé"]').remove();
Statut needs to be the internal name.

Dars
Posts: 12
Joined: Thu Apr 07, 2016

12 Apr 2016

Awesome, thanks!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests