xMikeX
Automation Master
Automation Master

Re: Form validation doesn't work

Jump to solution

Use the name of the controls instead of item properties:

Your rule is using the ItemProperty:Involved

{ItemProperty:Involved} == 'Student Only' && isNullOrEmpty(StudentName)

Make sure you use references to your Named Controls instead.

See if that helps.

0 Kudos
Reply
Not applicable

Re: Form validation doesn't work

Jump to solution

I changed it to Involve == 'Student Only' && isNullOrEmpty(StudentName) but still not working

0 Kudos
Reply
xMikeX
Automation Master
Automation Master

Re: Form validation doesn't work

Jump to solution

Which field is StudentName pointing to?   Make sure that is the correct named field on the form.

0 Kudos
Reply
Not applicable

Re: Form validation doesn't work

Jump to solution

it is the correct field

0 Kudos
Reply
xMikeX
Automation Master
Automation Master

Re: Form validation doesn't work

Jump to solution

Can you screen shot which field that represents on your form?  

0 Kudos
Reply
Not applicable

Re: Form validation doesn't work

Jump to solution

0 Kudos
Reply
xMikeX
Automation Master
Automation Master

Re: Form validation doesn't work

Jump to solution

Still can't tell which specific field it is pointing to.  However, you have the validation sitting on the "Employee" people field correct?  That is the control associated with the rule you created.  Maybe if you drew some arrows saying "if this and this" then I want validation to happen - I can get this going for you.

0 Kudos
Reply
Not applicable

Re: Form validation doesn't work

Jump to solution


check the attached file, I put a circle arounf the controls where I need validation

if staff only is selected tehn student must have a value

if staff only is selected then employee must have a value

if student and staff is selected tehn both employee and student name must have value

0 Kudos
Reply
xMikeX
Automation Master
Automation Master

Re: Form validation doesn't work

Jump to solution

Okay, I figured it out, it turned out to be a bit tricky to isolate the problem.   You had custom validation turned on for the StudentName - people picker field.  This caused all validation to fail.

Remedy:

1) Delete both of your people picker controls and drag new ones on - delete Student and Employee and then recreate them.

2)  Create 2 rules ----> one will go on Employee, the other will go on Student.

3)  Put the following rule on Employee

(isNullOrEmpty({Self})) && (Involve == 'Staff Only' || Involve == 'Both Staff and Student')

4) Modify the above rule so that you can apply it to the Student field.

Thanks

0 Kudos
Reply
Not applicable

Re: Form validation doesn't work

Jump to solution

its very wierd it dossn't work

I attached my template again for you

0 Kudos
Reply