Solved

Looping Questions on Inspections

  • 21 March 2023
  • 7 replies
  • 213 views

Badge +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?

icon

Best answer by Corey 21 March 2023, 20:10

View original

7 replies

Userlevel 3
Badge +4

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.

 

 

Userlevel 3
Badge +1

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?

Badge +1

Hi @Corey @jackihann

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

 

Userlevel 3
Badge +1

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

Badge

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?

Userlevel 3
Badge +4

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.

Badge

nice, thanks for the hint. 

Reply