Support

Home Forums Event Espresso Premium Editing questions with a question group

Editing questions with a question group

Posted: February 4, 2014 at 11:15 pm


Jo Stinson

February 4, 2014 at 11:15 pm

Hi,
Hoping you can help.
I need to edit some of the questions within a questions group (Applicant’s Details) but they’re are locked and cannot get access to make changes even though I am logged in as administrator.
Is there an addon that I need?


Dean

February 5, 2014 at 12:13 am

Hi Jo,

The locked questions are system questions but they can still be edited in a limited capacity.

Which questions are you trying to edit and what are you trying to do?

And no, there is no addon required as an Admin to edit questions.


Jo Stinson

February 5, 2014 at 1:39 am

Hi Dean, the questions are in Applicant Details. Such as first name, student’s first name, student’s surname. I need to get rid of first name as it is asking the same question as ‘student’s first name’ on the registration form. Why can’t I just delete the ones I don’t need?


Dean

February 5, 2014 at 3:14 am

Hi,

I see, well it sounds like you have created an extra question – Student first name and surname. The thing is you CANNOT delete the default First Name and Last Name questions, it is a required question and locked so that the plugin can always function correctly.

You could of course rename those default questions to Student First name etc, if that would work for you.


Jo Stinson

February 5, 2014 at 3:20 am

I’m happy to keep the default fields but need to get rid of one of the first name fields.
http://kidscollegeqld.com.au/home/register-sept-uq/
You can see what I mean by following the link above. Hope you can help.


Dean

February 5, 2014 at 3:27 am

Hi,

Then go to Event Espresso menu > Questions and delete the Students First Name question

OR

Go to Event Espresso menu > Question groups and remove the Students First Name question from every group it is in (this does not delete the question but removes it fromt he registration forms).


Jo Stinson

February 5, 2014 at 3:34 am

I would but they’re locked….you know with a annoying little yellow lock!


Jo Stinson

February 5, 2014 at 4:06 am

Are you still there Dean? Can you suggest anything else I should try?


Tony

  • Support Staff

February 5, 2014 at 4:18 am

Hi Jo,

Looking at the page source it looks like someone has renamed one of the required system fields (Last name to be exact) to Student’s First Name, which is why you can not delete that field.

You can rename system questions & remove custom questions but you can not remove system questions.

So in order to do what you are asking you will need to re-name that question to one you do require and remove one of the custom questions from the group.

Does that make sense?


Jo Stinson

February 5, 2014 at 4:43 am

Ok that seems to have fixed that problem. Thanks
Now that we fixed that one..how do I change the order of fields on the Registration Information [Primary Attendee Record] so that names, addresses etc appear at the top? At the moment they are half way down the page and the email address is at the top.


Tony

  • Support Staff

February 5, 2014 at 4:55 am

No Problem 🙂

If you edit the questions you can give each question an ‘Order/Sequence Number’.

Starting with 1 to be displayed at the top of the group you can specify this for each question to display them in any order you choose.


Jo Stinson

February 5, 2014 at 5:19 am

I’ve had a look and for example Under manage q’s edit question email is order / sequence 10 however it appears at the top and last name which has the order sequence 1 is half way down the page?


Tony

  • Support Staff

February 5, 2014 at 5:35 am

Do all the questions within that group have an order/sequence number?


Jo Stinson

February 5, 2014 at 5:52 am

There is 15 questions within the group called Applicant’s Details.
First name does not have a number
Last name is #1
Several questions share the same number eg email & postcode share #10 / suburb & phone share #8


Tony

  • Support Staff

February 5, 2014 at 6:21 am

I’ve just created a question group and tested different sequencing.

Questions that do not have a number assigned to them are output first, followed by the questions with sequence numbers assigned (ordered by the sequence number lowest -> highest)

You’ll need to sequentially order all the questions, each with their own number in a sequence in order for consistent results.

You can also space out the number sequence in case you need to add questions in the future. For example if you number the questions 1-10, then need to add another question at position 6 you’ll need to re-order questions 7-10.

However if use numbers such as 5,10,15,20. Then if you wish to add a question between the 1st and 2nd question you can assign it a number between 6-9.

Hope that helps.


Jo Stinson

February 5, 2014 at 6:34 am

Hi Tony,
So why is it in the correct order for the applicants to input their information on the registrations page but out of sequence when I look at their registration details ie when I click on them as an attendee and go through to the Registration Information [primary attendee record}?


Tony

  • Support Staff

February 5, 2014 at 6:52 am

That’s because the admin view of a registration orders the questions by question group ID & question ID in ascending order, not by the order/sequence numbers.

So they will be displayed in the order they were created when you view a registration, rather than how you have them set to display on the registration page.


Jo Stinson

February 5, 2014 at 7:12 am

Ok. so it sounds like I need to change that. How do I do that?


Tony

  • Support Staff

February 5, 2014 at 7:58 am

Its a simple change, however the file/function you would need to change is a part of Event Espresso core, it therefor can not be overridden and is not pluggable so you would lose this modification after each Event Espresso update.

We advise against modifying core files/functions and unfortunately can not support them.

Having said that the file you need to modify would be event-espresso/includes/admin-reports/edit_attendee_record.php line 619

$SQL .= "ORDER BY qg.id, q.id ASC";

Change that to be:

$SQL .= "ORDER BY qg.id, q.sequence, q.id ASC";


Jo Stinson

February 5, 2014 at 3:25 pm

Surely something so necessary shouldn’t be made so difficult to modify! It’s just a group of fields in the wrong display order. I hope we’re not talking about two different things.
Are you able to take a look at the offending form (if I provide my login details) and see if you can find a way around it?


Tony

  • Support Staff

February 6, 2014 at 4:52 am

I can take a look if you would like, but looking at the code I’m fairly certain we are talking about the same form.

Looking at a registration form for an event on the front-end http://d.pr/i/EQS9 (I altered the order of Question 2 to illustrate it is a custom order I have set)

Then looking at a registration for that event the questions show up like this: http://d.pr/i/jZzR

Adding the fix I posted and refreshing the admin page, the questions now show in the same order as the registration form http://d.pr/i/5HaH

If that is not the same form and you would like to send login details with a description please use https://eventespresso.com/send-login-details/

Also include a reference to this thread so we can identify the email.

I have opened a ticket with a view to include this in the next version of Event Espresso as it should not effect anything else and will only make a different for users with a custom order.

Unfortunately I can’t comment on as to if/when it will be included.


Tony

  • Support Staff

February 18, 2014 at 6:26 am

Hi Jo,

Sorry for my delay getting back to you.

I followed your instructions and we are talking about the same form. The instructions given previously are the steps you would need to follow to ‘fix’ the order to match your custom sequence/order you have given the questions.

As I already had the file modified when looking at it previously I have added it to a Gist available here

https://gist.github.com/Pebblo/1329f43c428cf1e03891

You can either replace the current files contents with that, or replace the file itself.

The support post ‘Editing questions with a question group’ 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