Posted: February 4, 2014 at 11:15 pm
|
Hi, |
|
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. |
|
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? |
|
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. |
|
I’m happy to keep the default fields but need to get rid of one of the first name fields. |
|
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). |
|
I would but they’re locked….you know with a annoying little yellow lock! |
|
Are you still there Dean? Can you suggest anything else I should try? |
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? |
|
|
Ok that seems to have fixed that problem. Thanks |
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. |
|
|
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? |
Do all the questions within that group have an order/sequence number? |
|
|
There is 15 questions within the group called Applicant’s Details. |
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. |
|
|
Hi Tony, |
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. |
|
|
Ok. so it sounds like I need to change that. How do I do that? |
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"; |
|
|
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. |
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. |
|
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.