Posted: May 19, 2015 at 11:55 am
|
Hi Guys, I want to know how I can change the option value for the dropdown questions. At the moment it’s coming out like this: <option value=”Cork”> Cork</option> I want it to come out like this <option value=”CK”> Cork</option> So the user will still see the correct County but the DB will store the CK entry. |
Hi Antonie, that is part of the core plugin and can’t currently be changed at this time. Is this related to payment processing as in creating a new payment gateway for Event Espresso 3? — |
|
|
Hi Lorenzo, It’s for an SAP integration, I’ve been digging in the code and it seems that the “form_build.php” is generating this.
If added in a extra row in the events_questions table called response-code and change to option value from $formatted to $formatted-code for example would that work? |
|
Hi, In theory I can’t see why it wouldn’t but I would test on a development server first and back up your database as a priority. I’d be tempted to add it to a separate custom table as updates may not be happy with the additional table column. Please note, unless you “plug” the function (it is pluggable – https://codex.wordpress.org/Pluggable_Functions) updates will over write your changes. Please also note that as this is a core customisation we cannot support it, so you may need to get a developer into the mix if you are struggling to get it to work. In a lot of ways it might be easier to catch the data on it’s way to the SAP integration and simply modify the county name to code at that point – this might be safer overall rather than modifying core files. |
The support post ‘EE3: Different option value in drop down questions’ 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.