Skip to main content
Nintex Community Menu Bar
Solved

Make a field required based on if an attachment is present or not on a start form

  • Dec 11, 2024 10:30 PM UTC
  • 4 replies
  • 144 views
  • Translate All

AlleyBee
Forum|alt.badge.img+1

I have a choice field on my start form that I’d like to make required based on whether or not an attachment has been added to the attachments field. I don’t need to be able to read the attached files or have any data other than an indicator if something is there or not. I have not been able to figure this out.

Is it even possible? Help!

Best answer by BarryCairns

Yes!

Create a form variable that uses the count function to count the number of attachments:

 

Then reference that variable in a form rule:

 

View original

4 replies

Forum|alt.badge.img+4
  • Nintex Employee
  • Answer
  • Dec 11, 2024 10:34 PM UTC

Yes!

Create a form variable that uses the count function to count the number of attachments:

 

Then reference that variable in a form rule:

 

Translate

AlleyBee
Forum|alt.badge.img+1
  • Author
  • Rookie
  • Dec 12, 2024 6:44 PM UTC

Thank you so much ​@BarryCairns! Follow-up question, might be a bit tougher…

While this worked perfectly in my form in general I seem to not be able to get it working within a repeating section.
 

Thoughts?

Translate

Forum|alt.badge.img+4
  • Nintex Employee
  • Dec 12, 2024 9:12 PM UTC

You need to go one level further into the structure of your repeating section:

 

You will see Current row in the object

 

 

Click into Current row and then do the count on the file upload there

 

 

 

Translate

AlleyBee
Forum|alt.badge.img+1
  • Author
  • Rookie
  • Dec 13, 2024 10:08 PM UTC

Got it! Worked perfectly! Thank you!

Translate