Skip to main content
Solved

Looping Questions on Inspections


obrend1
Forum|alt.badge.img+1

We use SafetyCulture to track damages to vehicles at certain locations on the vehicle, for example on the windscreen. For each damage we take a photo and then record the type of damage (e.g. “Scratch”, “Chip”, “Crack”) and then some metric depending on damage type (e.g. for the “Scratch” damage type we then ask the user to input the length of the scratch).

The windscreen could have multiple damages that need to be logged in this way and so a useful feature would be to allow the user to “Add another” or indicate “All damages Added” without needing to prescribe the number of damages (and therefore the number of questions in the template) in advance, which is unknown. “Add another” would allow the user to repeat the same question set to add another record of damage. “All damages Added” would allow the user to break the loop and move onto the next inspection area.

A workaround using existing features would be to use the slider response type and add logic to display the respective number of further questions based on the slider value. This is less than ideal because it requires the user to count the number of damages in advance and an upper limit needs to be specified on the slider.

Is there another way to do this?

Best answer by Corey

Have you tried putting the questions into a section and turning on repeat section? The user can then click the green + to add as many damages as they need. You can still have them select where, and based on where, have logic as to the damage type.

 

 

View original
Did this topic help you find an answer to your question?

7 replies

Corey
Forum|alt.badge.img+6
  • Speaker
  • 260 replies
  • Answer
  • March 21, 2023

Have you tried putting the questions into a section and turning on repeat section? The user can then click the green + to add as many damages as they need. You can still have them select where, and based on where, have logic as to the damage type.

 

 


jackihann
SafetyCulture Crew
Forum|alt.badge.img+2
  • SafetyCulture Crew
  • 177 replies
  • March 21, 2023

Hi @obrend1 👋🏼

@Corey is spot on here! Just to showcase his example in action – see GIF.

You can also follow the instructions in our support article HERE :) 

Does this achieve what you’re trying to do?


obrend1
Forum|alt.badge.img+1
  • Author
  • Learner
  • 3 replies
  • March 22, 2023

Hi @Corey @jackihann

Thanks for the quick responses. That is exactly what I needed - should have spotted it before 🤦.

 


jackihann
SafetyCulture Crew
Forum|alt.badge.img+2
  • SafetyCulture Crew
  • 177 replies
  • March 22, 2023

No worries @obrend1! I’ve converted this post to a question and marked @Corey’s reply as the answer :)


indoor environment geek
Forum|alt.badge.img

is there a way to repeat pages as well, so that there are nested loops ?

For example multiple tests each require multiple pings. Don’t know in advance how many tests or how many pings.

 

A possible workaround is to make each test a new inspection, but to do this we would need to copy all the title page info from one inspection to another - is there a quick way for the worker to do this in the app?


Corey
Forum|alt.badge.img+6
  • Speaker
  • 260 replies
  • October 26, 2023

We embed sections within sections in many cases.  The outer section and inner sections can be repeat or not.  That gives you a lot of flexibility.


indoor environment geek
Forum|alt.badge.img

nice, thanks for the hint. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings