Support

Home Forums Event Espresso Premium How to get Question ID

How to get Question ID

Posted: April 11, 2018 at 9:42 am

Viewing 1 reply thread


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

Viewing 1 reply thread

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.

Event Espresso