display text of Select instead of values

Home Forums Quform PHP display text of Select instead of values

This topic is: not resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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.
    #38075
    sanjeev
    Participant

    Also, validators for date and time are not working and showing wrong date and time.

    #38076
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #38077
    sanjeev
    Participant

    Hi,

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2026 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy