This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Display all fields in email


  1. slentz
    Member

    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 15 years ago #
  2. webcommerce
    Member

    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 15 years ago #
  3. redityo

    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;
    }

    MachForm Support

    Posted 15 years ago #
  4. slentz
    Member

    Thanks for the response. Exactly what I needed!

    Posted 15 years ago #
  5. webcommerce
    Member

    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 15 years ago #
  6. yuniar

    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


    MachForm Founder

    Posted 15 years ago #
  7. webcommerce
    Member

    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 15 years ago #
  8. yuniar

    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).


    MachForm Founder

    Posted 15 years ago #

RSS feed for this topic

Reply