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

Problem with 2 server validation behaviours on one page - need two different triggers but it's not validating the second instance

Thread began 11/22/2018 1:07 pm by Nathon Jones Web Design | Last modified 11/22/2018 7:14 pm by Nathon Jones Web Design | 46 views | 9 replies

Nathon Jones Web Design

Please find a link to the form below. I'm trying to set it up using Bootstrap 4 nav tabs so that what is actually a very long form is more digestible - it being split into 5 sections (Steps 1-5) using the Bootstrap tabs. However, the form is entirely on one page.

I'm running into problems because of the following...

1) When a user completes Step 1 (the first form on the first tab), I am saving to database because the client wants the user to automatically receive login details so that should they only part complete the form, they can later return to it (it being saved and available in a user/pass protected area).

2) Once a user progresses past Step 1, I would prevent them from submitting Step 1 again, in this session, based on whether or not there was an instance of a newID session (created in the MySQLi Insert behaviour).


3) So, Step 1 is validating (healthscreeningform_984) and submitting to database correctly. I have not implemented it yet, but I will be doing an insert to multiple tables at this stage - Customer, Order and Order Detail

4) At this stage it progresses you to Step 2 which I have only set up one validation on so far (GP's Name). It is this validation (healthscreeningform_783) that's not working.

As well as setting up validation on the forms within each Step I also need, at the end of each step, to run an UPDATE behaviour on the Order Detail table (basically the entire form data from Steps 2-5).

Hope that makes sense. If you feel there is an easier way to approach this, I'm all ears btw!

Thank you Ray.
NJ

PS. Are you back from sailing?

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