close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple Update Server Side Validation

Thread began 4/16/2019 8:44 am by Thomas Hill | Last modified 4/18/2019 12:05 pm by Ray Borduin | 37 views | 6 replies |

Thomas Hill

Multiple Update Server Side Validation

Hi,

I am just wondering if DataAssist v2 has the ability to do Server Side Validation when updating multiple records on a single page?
I have scoured the helps files and can't find anything.

Many thanks, in advance.
Thomas

Sign in to reply to this post

Ray BorduinWebAssist

What are you trying to validate? It probably isn't built in, but I can help you implement it.

Sign in to reply to this post

Thomas Hill

That's good of you, thanks.

I currently have an area of my site which allows me to enter details for VIPs (i.e. names, addresses and telephone numbers only) which I assign to a user's booking.

The (authorised) user of the booking is then required to check and confirm the details for all of the VIPs for the booking (usually between 2 to 4 VIPs).
I guess I could set up a page to require the user to validate each VIP individually but I like having it on one page for speed.

I hope my explanation is clear.
Let me know your thoughts.

Many thanks,
Tom

Sign in to reply to this post

Ray BorduinWebAssist

Client validation is easier... just add the required attribute to any field that needs to be validated. Server validation is the stronger validation, but more difficult to pull off and may be more work than it is worth since this form is for authenticated users that wouldn't probably do something like disable javascript to get around the client validation.

Sign in to reply to this post

Thomas Hill

No problem, this is what I've currently been doing. However, I am just using the following which just requires an input.

<input name="vipFirstName_<?php echo($wa_startindex); ?>" type="text" class="form-control" id="vipFirstName_<?php echo($wa_startindex); ?>" value="<?php echo $WADAourbigday_vips->getColumnVal('VIP_FirstName'); ?>" required oninvalid="this.setCustomValidity('You must provide a first name')" oninput="setCustomValidity('')">

However, this means users could enter some unwanted characters < >$%* etc.
As you've pointed out they need to be authorised and so it is very unlikely but would be useful to know.

Many thanks,
Tom

Sign in to reply to this post

Ray BorduinWebAssist

You can add a pattern attribute to tag to restrict characters. Something like: pattern="[a-zA-Z0-9]+" would probably work for a first name.

Sign in to reply to this post

Thomas Hill

Thanks Ray, that's really helpful.
I've also added an apostrophe so that is allows names which occasionally include one:

pattern="[a-zA-Z0-9']+"

Many thanks for your awesome help.

Many thanks,
Thomas

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