Skip to main content

I have written a few rules for this panel---and basically it
HIDES when classes that do not require the attachment are NOT selected.

I would like for the attachment to be REQUIRED when the class
that requires the attachment is selected.

Here is my form and a few things that I have tried:

With these current settings—the form is still allowed to
save even if no attachment is given.

I would like an error message to stop users from registering
without an attachment.

Can you please help with this?

Attachment Question.JPG

Panel Question.JPG

186196_pastedImage_0.png

Add a validation rule to your attachment field.  Depending on what and how many classes need an attachment will change your formula.


Parker,

Thanks so much for your response.

I am new to Nintex and get turned around when writing rules.

Here is what I have and its not working. The control used to validate the rule is a "List Lookup"Attachment Validation Question 1.JPGAttachment Validation Question 2.JPGAttachment Validation Question 3.JPG

Will you take a look at my validation rule and tell me what I am doing wrong?


Parker,

Thanks so much for your response.

I am new to Nintex and get turned around when writing rules.

Here is what I have and its not working. The control used to validate the rule is a "List Lookup"Attachment Validation Question 1.JPG


Attachment Validation Question 3.JPG


They get me too.  I'm sure there are many ways to achieve this but this should work.  If(contains(Class, 'Beginner Agvance Training (2 Day Class)'), 0, 1)


Attachment Validation Question 2.JPG


Parker,

Thanks so much for your help, but this does not work for me either.

In every other instance that I have referred to this control I had to use a parseLookup.

It seems that this validation rule would use the parseLookup since the information is being pulled from a list look-up fieldAtt Validation not working 1.JPG


Check your formula:  If(contains(MyFormClassName, 'Beginner Agvance Training (2 Day Class)'), 0, 1)

Missing '(' after contains


I am still able to save without the attachment.

I think I have the formula right this time:

Att Val Question 4.JPG


ah shoot my fault, had the requirement wrong.  swap the 1 and 0.  I was requiring an attachment for everything but beginner....

If(contains(Class, 'Beginner Agvance Training (2 Day Class)'), 1,0)


Thanks so much for trying-----but still no good news.

swapping the numbers did not work either.

I tried both with a space before the 1 and without the space before the 1

(im not sure if this makes a difference)

Att Validat not working 2.JPG


Not sure whats going on here but it works on mine with a lookup:

186219_pastedImage_0.png

Lets do this....add a calculated value on your form and set it to equal your class field...what does it say when you select beginner...


Im sorry----not sure how to add a calculated value???

it is strange that it works for you----because this is EXACTLY what I need to happen on my form ---and my biggest problem would be SOLVED.

Thanks so much for working with me.

Please tell me how to add a calculated value.


186220_pastedImage_0.png186221_pastedImage_1.png


one other question----you ARE writing the validation rule for the attachment CONTROL---right??

(Not the class control or the entire attachment PANELAtt SURE.JPG)


Like this??

Calculated value.JPG


yes, preview and select a value and see what it says....yes validation rule is on the attachment control.


ok,

I figured out what you meant.

I added the calculated value then selected my class. This is what I got:

Calculated Value Results.JPG


Ensure that the default control is set to yes and the minimum is set to 1 or more

186469_pastedImage_0.png


Reply