close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Need email to remove empty fields

Thread began 4/15/2019 10:27 am by lr_leal239405 | Last modified 4/26/2019 9:22 am by lr_leal239405 | 990 views | 10 replies

lr_leal239405

So I need a hidden field for the db, but not for the email sent. Since there are so many forms in one form I only want the populated fields but since that field is always populated it always shows even though there's no other data in that particular form (within the forms form) :). Here's what the email looks like:

QUOTE REQUEST FORM
Form Submitted 4-23-2019 | 7:04 PM UTC


Applicationcs:
csFormName: Core Support Form Specs
linebreakx:

dropdownws: on
wsFormName: Anti-Wrinkle Form Specs
abrFormName: Adjustable bowed roller Form Specs
fbrFormName: Fixed Bowed Roller Form Specs
AntiWrinkleGroup 3: Scroll Roll
Machinesr: 1
Materialsr: 1
Materialthicknessminsr: 1
Materialthicknessmaxsr: 1
Widthminsr: 1
Widthmaxsr: 1
Webtensionminsr: 1
Webtensionmaxsr: 1
Machinespeedsr: 1
Webwrapanglesr: 1
Webwandersr: 1
Notessr: 1
srFormName: 'Scroll roll form Specs
apFormName: Adjusta-Pull Form Specs
stFormName: Standard Trim Removal Form Specs
smFormName: Standard Matrix Removal Form Specs
frtrimFormName: Fox TrimAway Form Specs
fmrFormName: FOX Matrix Form Specs
tcFormName: Trim Chopper Form Specs
sscFormName: Safety Chuck Form Specs
sshFormName: Shaft Holders Form Specs
rmbFormName: Mounting Block Form Specs
irFormName: Idler roller Form Specs
brFormName: Brake Form Specs
ehrFormName: Heated Roller Form Specs
nraFormName: Nip Roller Assembly Form Specs
draFormName: Dancer Roller Assembly Form Specs
isaFormName: Inline Slitting Assembly Form Specs
sctFormName: Shear Cut Edge Trim Assembly Form Specs
usFormName: Unwind Stand Assembly Form Specs
rsFormName: Rewind Stand Assembly Form Specs
cmaFormName: Web Accumulator Form Specs


I don't want all these fields to show up, like rsFormName, ehrFormName, irFormName etc. I only want them to show up if a checkbox (the checkbox that expands the form) is checked. I guess the problem is not the Email Sent code but in the forms If, Then statement. I got my logic wrong I guess: In the hidden fields value, I write:

<?php echo((isset($_POST["dropdownws"])?("Anti-Wrinkle Form Specs"):"")); ?>

It doesn't see if the dropdownws is set. So, it sends no info. I don't know how to write it without expressly putting it in value="Anti-Wrinkle Form Specs" and having it (and all) show up on the email.

I also had tried : (this is the whole input field)

<input type="hidden" id="csFormName" name="csFormName" value="<?php if(isset($_POST["dropdowncs"])) { echo "Core Support Form Specs"; } ?>"

Sorry if I'm confusing you.

Thanks much.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...