I have a webform that is very simple, it's a questionnaire. It is attached to a content type called "event". e.g.
discussion_1: '#type': likert '#title': 'Discussion 1' '#questions': 'Question 1': 'Question 1' 'Question 2': 'Question 2' 'Question 3': 'Question 3' '#answers': likert_five_scale
Is it possible to alter this webform when the webform is rendered by populating the questions from another source such as a view?
i.e. there will be a variable number of discussions with variable numbers of questions.
I am trying to dynamically build a webform based on data that is coming from the node to which the webform is attached