N/A when the field is not filled

Home Forums Quform PHP N/A when the field is not filled

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6317
    cruxy
    Participant

    Hello,

    In the notification file I am using this code:


    <?php echo $form->getElement('city')->getLabel(); ?>: <?php echo $form->getValue('city'); ?>

    The results is always like this:

    City: Amsterdam

    Now, I want to get something like that if the city field not filled:

    City: N/A

    Any help will be appreciated. Thank you in advance.

    Cruxy

    #6336
    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.

    #6345
    cruxy
    Participant

    Thank you Ally. It works perfect.

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