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

  • December 11, 2024
  • 4 replies
  • 81 views

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:

 

4 replies

Forum|alt.badge.img+3
  • Nintex Employee
  • Answer
  • December 11, 2024

Yes!

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

 

Then reference that variable in a form rule:

 


AlleyBee
Forum|alt.badge.img+1
  • Author
  • Rookie
  • December 12, 2024

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?


Forum|alt.badge.img+3
  • Nintex Employee
  • December 12, 2024

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

 

 

 


AlleyBee
Forum|alt.badge.img+1
  • Author
  • Rookie
  • December 13, 2024

Got it! Worked perfectly! Thank you!