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
Remove used options on specific dropdowns
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
November 15, 2018 at 10:16 am
Each dropdown on a form has a unique field ID. Field ID only applies to a single form. It should be sufficient.
November 15, 2018 at 10:42 am
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?
November 15, 2018 at 10:57 am
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.
November 15, 2018 at 11:23 am
That makes sense. Thanks so much for all the help.
Discussion closed.