Not show label and text field in Email if no value

lalov1 07 Feb, 2011
Is there any way to not show the label and text field in the Email output if the user didn't put anything in the field?
GreyHead 07 Feb, 2011
Hi lallov1,

You can do it with some code. Not necessarily simple. Please see this thread

Bob
GreyHead 17 Feb, 2011
Hi lalov,

I'd probably take the time now to move these into a database table to make the form simpler to maintain. But if that isn't practical you could possibly write a loop to go through the input names text_0 to text_140.

Bob
lalov1 17 Feb, 2011
Sorry to be a bother, but I'm fairly new to all this. What do you mean by look and do I put this in the Email template?
GreyHead 17 Feb, 2011
Hi lavov1,

Sorry, I meant 'loop' i.e. use a PHP for loop to cycle through all the input names.

Bob
This topic is locked and no more replies can be posted.