Posted: September 28, 2013 at 10:11 am
September 28, 2013 at 10:11 am I have an event “Registrazione Agenzie” where through css and a small change to the file form_build.php, I changed the fields “Cognome” and “Nome” in “Ragione Sociale” and “Nome Referente”. I did this because only for this event I need to show users these fields rather than the default ones. But when I get to the last screen where there is a summary of the information that the user has entered, I can not change the fields “Cognome” and “Nome” because the <th> tag of the table does not contain the id (for example : lname-1-0-1, fname-1-0-1) that would allow me to make changes with CSS. I know the file to edit is confirmation_display.php but was not able to enter the code that generates the id in <th> tag. Here is a screenshot and this is the link to the page: http://aicsturitalia.it/privati/registrazione-agenzie/
| |
Please, can anyone answer? | |
Hi, Well you are not going to do it with CSS. In the confirmation_display.php there is a section <?php foreach ($questions as $question) { ?> Change that to <?php foreach ($questions as $question) { if($question->question == "First Name") { $question->question = "Ragione Sociale"; } if($question->question == "Last Name") { $question->question = "Nome Referente"; } ?> That will change it BUT it will do it for every event, o you will need to add a conditional in, and that is dependant on how you have set things up, as pseudo code it would look like this (this is not real code) <?php foreach ($questions as $question) { if(the check = the check answer) { if($question->question == "First Name") { $question->question = "Ragione Sociale"; } if($question->question == "Last Name") { $question->question = "Nome Referente"; } } ?> If you are not sure what to do with this, I would advise you to contact a developer to assist you further with the modifications you need – http://staging.eventespresso.com/developers/event-espresso-pros/ | |
Hi Dean, thank you very much for your reply. Thanks again! | |
The support post ‘Edit Registration Form’ 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.