Support

Home Forums Event Espresso Premium How to get Question ID

How to get Question ID

Posted: April 11, 2018 at 9:42 am


radiusinvestigations

April 11, 2018 at 9:42 am

I am using this code snippet found on another thread regarding adding surcharges based on answers in the registration form. In the section regarding changing the question id, what is the question ID? I tried to add the admin label I created for the question, but when I select the question that is suppose to add a surcharge, it isn’t added when I select it nor when I go to check out. I am theorizing it is one of two things:

I am not entering the correct question ID, or
I am not placing the code in the correct place (I put it in my theme’s functions.php file)


Tony

  • Support Staff

April 11, 2018 at 10:12 am

Hi there

I am not entering the correct question ID, or

It’s the ID of the question rather than the admin label.

There are 2 ways to find that info, go to Event Espresso -> Registration Form -> Questions.

In the top right go to ‘Screen options’, select the ID column to show – http://take.ms/e9ACR

You’ll then see the ID’s for the questions, find your question and you’ll see its ID.

Or edit the question you are using and look in at the address bar, the URL will now have a QST_ID param – http://take.ms/pKqiF

The support post ‘How to get Question ID’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 3 months, 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!