Appnitro Software Forums » MachForm

Display all fields in email

(8 posts)

  1. Is it possible to display all fields (including blank) in email?

    Sorry if this has been addressed in a previous post...I could not find it.

    Thanks, any help will be greatly appreciated!

    Posted 1 month ago #
  2. Hi slentz,

    Insofar as I understand your question, the email default does just that. The field is {entry_data}, which is inserted into the body of the email. You can also add anything else you like such as salutations and explanatory text.

    Hope that is what you are wanting to know.

    Ron S

    Posted 1 month ago #
  3. Hi slentz,

    It seems you want to display empty field also, to do so you should edit helper-functions.php file search around line 330 ~ 332 and 366 ~ 368 you'll find these code :

    if(empty($data['value']) || $data['value'] == ' '){
    	continue;
    }

    replace with this one

    if(empty($data['value']) || $data['value'] == ' '){
    	//continue;
    }
    Posted 1 month ago #
  4. Thanks for the response. Exactly what I needed!

    Posted 1 month ago #
  5. Hi redityo,

    I'm a bit puzzled ... my forms show all 'empty' fields either when I specify them or using the universal {entry_data}. Does your fix only apply when 'plain text' emails is selected?

    Or, am I missing something here?

    Ron S

    Posted 1 month ago #
  6. The code above only apply when you use {entry_data} only.
    Are you sure you have modified the correct part of your code?

    If you would like us to check, send your file to: customer.service [at] appnitro.com

    Posted 1 month ago #
  7. Hi yuniar,

    I think you have misunderstood my question ... I'm not having any problems with getting 'empty' fields to show on forms or printouts.

    That's why I asked about the code from redityo. I see the changes relate to the section for text only emails (helper-functions.php), hence my question. It was just a curiousity thing.....

    Regards,
    Ron S

    Posted 1 month ago #
  8. Ahh.. I see. Sorry! :-)

    The code above should work for either the normal email or plain text.

    Line 330 ~ 332 (this one apply to normal html email) and 366 ~ 368 (this one for plain text).

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.