Expand my Community achievements bar.

SOLVED

Viewing only questions that the answer is Yes or N/A

Avatar

Level 5

Good Day All;

I have been asked to see if I can come up with a form the has approx. 40 questions in 2 seperate sections. The owner of the form would not only like to view the completed form but also have the ability to only see questions marked "Yes" or "No" or "N/A". The three options would be available from a dropdown.

I hope I have explained this well enough

Chomp

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Chomp,

You could achieve that, espicially of the form was set to Flowed.

It would be easier if the only dropdowns on the form were these questions. You would basically loop through the form contents looking for objects with a className of field AND a ui.oneOfChild.className of choiceList. Then test the value of that object, if it is Yes, No or N/A, then change the presence.

The LockAllFields is a good example of looping through the form contents. http://assure.ly/yDtfsM.

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi Chomp,

You could achieve that, espicially of the form was set to Flowed.

It would be easier if the only dropdowns on the form were these questions. You would basically loop through the form contents looking for objects with a className of field AND a ui.oneOfChild.className of choiceList. Then test the value of that object, if it is Yes, No or N/A, then change the presence.

The LockAllFields is a good example of looping through the form contents. http://assure.ly/yDtfsM.

Niall

Avatar

Level 5

Thanks Niall...

Seems to do the trick