Jump to content

Newbie Question!


CraigMcKee

Recommended Posts

Hello, I'm sorry, I know nothing about php programming but need some help - I'm sure this will be a simple question! 

I have created a Formidable form on Wordpress (form is named BookingTest).  It has a drop down box on (called dropdown) that has a list of numbers that requires a unique value.  The plugin designers have shared some code that is supposed to remove used values from the drop down box but it's not working - I don't know if I've put it in the right place or if I need to edit it or anything like that.  

This is there documentation: https://formidableforms.com/knowledgebase/frm_setup_new_fields_vars/?fbclid=IwAR1Zj1jWo6iqdR4Cjq8MGpTLRW01XToPR7vp_2oN4XEmQ81SLAW-sbtbYKU#kb-remove-used-options

I have pasted this code in it's entirety to a Code Snippets plugin but I still get all the values appear.  

Do I need to amend it to refer to my form explicitly?  How is this filter called?  Do I need to add an action?!

Really confused :(

Thank you! 

Link to comment
Share on other sites

Really hard to know without having access to all the code...

Have you see their forums, or I guess joined their Slack group? The problem with questions about topics like this Formidable stuff is that you can't go around showing anyone (like us) what code you're working with because of copyrights, but we kinda need to see that code in order to know what to do. So their own support channels are the best place to start.

Link to comment
Share on other sites

Put the code from the example in your child theme's functions.php file. I assume you're using a child theme - if not, create one and then do it. You don't want to modify any plugin or pre-built theme files directly as those changes will be overwritten every time the plugin or theme updates.

Now, that having been said, you can't just copy and paste the example code - you'll have to modify it to fit your purposes. For instance, the example code checks for any fields with an ID of 100, 101, or 102 before running the rest of the logic. The likelihood that the fields you're looking to compare against are ID 100, 101, or 102 is slim...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.