Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Seperate form into sections for validation

Avatar

Level 9

I have a form that is really two forms in one. Toip section and a bottom section. Each section has a send by e-mail button that sends the PDF form to the next department. I want the top half of the form to verify all required fields are completed when the send by email button in that upper section is clicked. Then I want the bottom section send by email button to verify only the bottom section before sending the form. Is there a way to break it up into two sections like this?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

If each part of the form is in its own subform, then you can by targeting the subform that you want to validate. For example the topSection email button would have in the click event:

if (topSection.execValidate() == true) {

     // send email script

}

else {

     // warn user script

}

Hope that helps,

Niall

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

Hi,

If each part of the form is in its own subform, then you can by targeting the subform that you want to validate. For example the topSection email button would have in the click event:

if (topSection.execValidate() == true) {

     // send email script

}

else {

     // warn user script

}

Hope that helps,

Niall

Avatar

Level 9

That works great! Thank you, thank you.

-Don