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"
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"
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)
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 field
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:
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)
Not sure whats going on here but it works on mine with a lookup:
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.
one other question----you ARE writing the validation rule for the attachment CONTROL---right??
(Not the class control or the entire attachment PANEL)
Like this??
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:
Ensure that the default control is set to yes and the minimum is set to 1 or more