close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validating a 'like entry'

Thread began 12/30/2012 3:10 pm by thehalpeen319342 | Last modified 1/04/2013 11:10 am by thehalpeen319342 | 2392 views | 10 replies |

thehalpeen319342

Validating a 'like entry'

Dear Jason, firstly Happy New Year. I have a form that can only be submitted if the person enters a pin. The pin is contain in a table called pin - it has only one entry in the table - the actual pin number.

Only invited guests can submit the form - but they need to know this pin - and they will be issued with this pin number.

Problem 1
The pin is setup to validate against the pin number in a recordset. It works in that the form doesn't process if the incorrect pin number is entered in the field, but no client-side validation or server side tooltip appears for this field, so the user is unclear as to the error. The tooltip only appears if the user types nothing into the field.

Any suggestions?

I have attached a screenshot of the form and the php page.


Problem 2

To keep my submit buttons consistent i changed the code from:
<input class="formButton" name="SimpleContact_submit" type="image" id="SimpleContact_submit" src="webassist/forms/fd_sharp_default/submit.gif" onclick="clearAllServerErrors('SimpleContact_Sharp_Default')" />


to

<input name="Clan_submit"
type="submit"
class="Sharp2"
id="Clan_submit"
value="Submit"
onclick="clearAllServerErrors('SimpleContact_Sharp_Default')" />

But when I do this it won't process the form

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

Jason ByrnesWebAssist

1) The like entry cannot be processed client side since it uses a recordset, it can only be processed server side.

the Validation Show if you added for showing the server validation message is set to trigger on the required validation for the pin, you should change it to trigger on the Like entry validation instead.

2) The behaviors on the page are set to use a button named "SimpleContact_submit". By changing the name of the submit button, you are breaking the behaviors. instead of:
name="Clan_submit"

use:
name="SimpleContact_submit"

Sign in to reply to this post

thehalpeen319342

Thanks, a million - that worked very well with the pin number.

However, the submit button is now processing the form, even with the wrong answer to the security question. Funnily, it won't process if no answer is entered.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

thehalpeen319342

Okay, I'll logon to the ticket to deal with the submit problem.


After successfully dealing with the pin issue in the last few tag on this thread, I decided to add a pin field the registration form - the purpose is to limit people who can register (they must know the pin).

When a user enters the pin, it validates against a recordset containing the pin using the 'like entry' behaviour. It's works in the last example you sorted for me (see previous tags on this thread) - but it doesn't work here - I get the attached errors in the browser - see attached screenshot.

I've also supplied the zipped page.

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

Jason ByrnesWebAssist

the screen shot is to small to read.

I cannot make out the errors.

Sign in to reply to this post

thehalpeen319342

See attached pdf, for clearer view

Attached Files
Pin error 2.pdf
Sign in to reply to this post

Jason ByrnesWebAssist

move the following code from line 103:

php:
<?php require_once("webassist/database_management/wa_appbuilder_php.php"); ?>




to line 1.

Sign in to reply to this post

thehalpeen319342

Brilliant - your great.

But just for future reference, how did that line of code end up there. Was that something I did or is that something that CSS Form Builder did?

Sign in to reply to this post

Jason ByrnesWebAssist

no way to know the answer to that question.

i can only tell you that is was in the wrong place.

i was not there when you created the page, so cannot say how it got added in the wrong place.

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