Accessing the state of the repeater from inside the repeater
Hey all, I am currently working on a form that has a repeater somewhat like this:
In the select called required_question I want to reference a different question from the repeater. I was trying to do this by using $get('questions'). But this results just in a null since its looking for a field called 'questions' in the repeater, which obviously does not exist.
So the thing I would like to know is how can i get the values of the other questions as options in my required_question?
Any help would be really appreciated, if there are any questions about my problem im happy to provide answers.
2 Replies
It would help reading the code, if you'd remove all the blank spaces.
Can you try
$get('../questions')
?Thanks for suggesting although $get('../questions') did not work $get('../../questions') does, now I only need to find a way to exclude the current question.