Posted: January 29, 2014 at 3:01 am
|
Hi, I need to have more than one questions group, but with the same name because my client needs to modify some questions group for every event. Any suggestion? |
HI Daniele, How are you today? I’m not sure if I understand your situation. Can you give us more detail? I’d recommend using question names that are unique so you can determine which group is selected when you configure an event. However, you don’t have to show the question group title or description in the registration form if you don’t want to confuse people. See here: http://www.screencast.com/t/A5409BZEXEy Does that help? |
|
|
Fine, thanks. I know that. Is that clearer? Thanks |
If you’re trying to differentiate between similarly named questions I have two general suggestions: 1) Add a character to the name of the question e.g. “t” to signify a text type question: “Product(t)” or “Product*”. This is the most simple way.
I don’t have any other suggestions that don’t involve changing EE3 core. |
|
|
In what page I have to look? |
I think Garth is referring to viewing the source of the edit_group and/or the add new_group admin pages. Alternatively you could modify the core code to include the question ID in the question group manager. One example would be to change line 126 of includes/form-builder/groups/edit_group.php so it reads: echo '<li><label><input ' . $checked . ' type="checkbox" name="question_id[' . $question->id . ']" value="' . $question->id . '" id="question_id_' . $question->id . '" />' . stripslashes($question->question) . ' - ' . $question->id . '</label></li>'; This idean has its downsides because the question ID may not be recognizable enough for your client, and it requires a core code modification, which will not be fun to maintain. I like Garth’s first option, and you could make the question label indication invisible to the end user by entering the question as: Product <span class="hidden-note">- TEXT</span> Product <span class="hidden-note">- MULTICHECK</span> Then you hide the note on the front end with a bit of CSS: .hidden-note { display:none; } |
|
|
Two questions: 1) Do my client do this? |
|
Update: It would be interesting if it was possible to use the “required_text” field aside to the |
That’s entirely up to you Daniele. |
|
|
I’m not sure if I understood right what do you mean… |
I’ll try to clarify then: > 1) Do my client do this? Either you or you client can do this, it’s up to you. > 2) Do I have to inserti this trick in the question title text box? You can if you’d like, it’s not mandatory, it’s a suggested workaround. If you can come up with a workaround that solves this issue in a better way for yourself and your client, by all means please do so. I can imagine that a more elaborate solution might involve using the WP the_content() filter to do something like filtering out anything on the front end that’s in a special set of brackets. |
|
|
Thanks, good suggestion! |
Hi Daniele, Glad we could help. I am going to close this thread. If you need assistance with anything else, please start a new one and we will be happy to help there. 🙂 |
|
The support post ‘More than one questions 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.