close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Removing unwanted fields from form

Thread began 10/26/2011 9:24 pm by rmruda390861 | Last modified 10/27/2011 12:49 pm by rmruda390861 | 1015 views | 4 replies |

rmruda390861

Removing unwanted fields from form

OK I've read the threads on this.
I need to remove these fields from the end of the email form (which arrives when the form is submitted)

HiddenFields fields:
YourDentalRep submit:

Now I have managed to remove the first field (HiddenFields fields) this is my code:


$remove = array();
$remove[] = "";
$remove[] = "x";
$remove[] = "y";

$removeBegins = array();
$removeBegins[] = "Security";

$removeEnds = array();
$removeEnds[] = "_x";
$removeEnds[] = "_y";

$removeIncludes = array();
$removeIncludes[] = "Security";
$removeIncludes[] = "HiddenFields_fields";

Now I've tried to add:
$removeIncludes[] = "YourDentalRep_ submit";
or
$removeIncludes[] = "submit";

Neither works..

Please advise.
Richard

Sign in to reply to this post

Jason ByrnesWebAssist

  Now I've tried to add:
$removeIncludes[] = "YourDentalRep_ submit";  




it looks like you have a space between the underscore and the "submit" try using:
$removeIncludes[] = "YourDentalRep_submit";


if it still does not work, send a copy of the form please.

Sign in to reply to this post

rmruda390861

Hi Jason,
Thanks for the reply - actually the space was a typo in the forum (late night)
I have zipped up both php files.
Thanks,
Richard

Attached Files
formYDR.zip
Sign in to reply to this post

Jason ByrnesWebAssist

YourDentalRep_submit is the full name of the form element, so add it to the remove array:

php:
$remove = array();

$remove[]  = "";
$remove[]  = "x";
$remove[]  = "y";
$remove[]  = "YourDentalRep_submit";
Sign in to reply to this post

rmruda390861

Thanks Jason,
It worked just fine - I think I get it now.
Richard

Sign in to reply to this post

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