close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

form won't submit due to radio button throwing up a validation error

Thread began 10/11/2009 4:29 am by gwh362692 | Last modified 10/21/2009 3:53 pm by Jason Byrnes | 4717 views | 10 replies |

gwh362692

form won't submit due to radio button throwing up a validation error

Hi everyone,

I've created a form with Form Builder and used Universal Email to produce the functionality. I just used one of the presets and modified it by adding a radio button group. When I test though, the form won't submit. The radio buttons keep throwing up the validation error even though I've actually selected one of them. Also, when the form page is loaded, the validation error on the radio buttons is showing right up front, even before I press the submit button.

I've attached the file - would someone mind taking a look to see what might be going one?

Thanks for any help.

Attached Files
contact.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Change line 13:

php:
$WAFV_Errors .= WAValidateRQ((isset($_POST["Send_enquiry_group_Enquiry_type__1"])?$_POST["Send_enquiry_group_Enquiry_type__1"]:"") . "",true,3);





to:

php:
$WAFV_Errors .= WAValidateRQ((isset($_POST["Send_enquiry_group_Enquiry_type"])?$_POST["Send_enquiry_group_Enquiry_type"]:"") . "",true,3);
Sign in to reply to this post

gwh362692

Thanks, that fixed the problem and will allow me to submit the form, but when I receive the email I don't receive any of the information in the form. I used the html part of universal email to create an html email and I used the bindings panel to bind the form data but nothing comes through except the labels in the table that I created for the email.

Do you know what might be happening?

Sign in to reply to this post

gwh362692

This is the code relating the html email:

<p><img src="imgs/logo.png" width="182" height="72" alt="Logo" /></p>
<table width="400" border="0" style="font-family:Arial, Helvetica, sans-serif";>
<tr>
<th width="120" align="left" scope="row">From:</th>
<td width="320"><?php echo (ValidatedField("contactWAUEHTMLWAUniversalEmail1","Send_enquiry_group_Name"))?></td>
</tr>
<tr>
<th width="120" align="left" scope="row">Email address:</th>
<td width="320"><?php echo (ValidatedField("contactWAUEHTMLWAUniversalEmail1","Send_enquiry_group_Email"))?></td>
</tr>
<tr>
<th width="120" align="left" scope="row">Enquiry type:</th>
<td width="320"><?php echo (ValidatedField("contactWAUEHTMLWAUniversalEmail1","Send_enquiry_group_Enquiry_type"))?></td>
</tr>
<tr>
<th width="120" align="left" scope="row">Comments:</th>
<td width="320"><?php echo (ValidatedField("contactWAUEHTMLWAUniversalEmail1","Send_enquiry_group_Comments"))?></td>
</tr>
</table>

Sign in to reply to this post

Jason ByrnesWebAssist

You are using the validated entries binding group. the validated entries only get a value when validation fails. Instead use the form binding group on the binding panel.

Sign in to reply to this post

gwh362692

Thanks - that fixed the problem.

I noticed that I had to manually revise a line of code to fix the first problem in this post. Will I have to do this every time I run form builder or is a fix needed to the extension?

Also, I noticed that if after running the extension and I make a manual change to the css, I'm no longer able to go back into the interface. Is this what's supposed to happen?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, until we release an update to fix the problem which should be soon.


Editing the CSS should not stop you from using CSS form builder to edit the design, though your manual changes will be lost.

What is the change you are making?

Sign in to reply to this post

gwh362692

Actually that's what I meant, ie. all my changes were lost. Hopefully in an up-and-coming version this won't be the case.

I'm also having problems changing the width of a textarea element in the form builder interface. I set the width of the overall form to be 366 pixels, then I had to go change the width of the text area to be something like 350 pixels, but when I enter this number and click apply, the element doesn't resize. Any idea why this won't work?

Sign in to reply to this post

Jason ByrnesWebAssist

after entering the width, use the enter key on the keyboard or tab to another field to force the change to stick before clicking the apply button.

Sign in to reply to this post

gwh362692

I was doing that, ie. hitting the enter and/or tab key but it won't stick. It just won't change. I even tried deleting the form and starting again but I'm still getting the same problem, and in addition to that when I try to change the bottom margin in the fieldset description, instead of any margin being adjusted, the colour of the description text changes instead. Also when I click finish Dreamweaver crashes.

I'm using mac os 10.5.8 so not sure if this could be contributing?

Really need help here as I can't continue with the form.

Sign in to reply to this post
loading

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