The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Remove used options on specific dropdowns

Labels

This Discussion is public

Notifications

I found a hook that can remove used options from a dropdown.  How do I modify to remove only from specific forms?https://formidableforms.com/knowledgebase/frm_setup_new_fields_vars/#kb-remove-used-options

Each dropdown on a form has a unique field ID. Field ID only applies to a single form. It should be sufficient.

Thanks for the reply.  I get it now.  What happens if I have two different dropdowns that I want to do this to?  Do I need to create a hook for each dropdown?

No. Look at this line in the code:

in_array( $field->id, array(100,101,102) )

Each of those numbers is the field id for a different drop down. List your drop down field ids there.

That makes sense.  Thanks so much for all the help.

Discussion closed.