Home › Forums › Quform PHP › display text of Select instead of values
- This topic has 3 replies, 2 voices, and was last updated 25 minutes ago by
sanjeev.
- AuthorPosts
- April 27, 2026 at 10:47 am #38072
sanjeev
Participant<select class=”quform” id=”activity” name=”activity”>
<option value=”1″>Run</option>
<option value=”2″>Walk</option>
<option value=”3″>Yoga</option>
</select>My form has above select field. I notification I want corresponding text not values.
I tried adding hidden field which holds text of selected option but that hidden field is not appearing in notification email.
Also, validators for date and time are not working and showing wrong date and time (screenshots attached).
Please help.
Thanks.
Attachments:
You must be logged in to view attached files.April 27, 2026 at 10:48 am #38075sanjeev
ParticipantAlso, validators for date and time are not working and showing wrong date and time.
April 27, 2026 at 11:34 am #38076Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 27, 2026 at 12:03 pm #38077sanjeev
ParticipantHi,
The reason I did not put the text directly in the value attribute is that there is already an existing activity_master in mysql db from where details are pulled therefore I have to go with id-name setup.
As you said, I already added following code in process file but it did not work:
$activityname = new Quform_Element('activityname', 'Activity Name');
$activityname->addFilter('trim');
$form->addElement($activityname);
If above can work it is fine with me. Otherwise the only workout I can think of is adding an element or replacing value of an element somehow.
Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.
