Answer the question
In order to leave comments, you need to log in
Polls in 1C-Bitrix: is it possible to make a “conditional question” (branching / interruption), after which the survey will end or “jump”?
I figured out how to create and add a poll to the page through the admin panel. You need to create a question so that on a certain answer of which the poll will be interrupted and a message like "Survey completed! Thank you for participating in our survey" is displayed.
Ideally, you need to do this through the admin panel, but if there is no other way, then you will have to climb into the code, it's okay - the main thing is that it can be done quickly. Kick, please, in the right direction, where to dig ..
Answer the question
In order to leave comments, you need to log in
I see two ways to solve your problem:
1) Expand the capabilities of the regular polling component using result_modifire.php where and add your own logic if possible.
2) Either you decide to develop your own component
+ most likely you will have to make a module for the admin part
I don't understand you very well, because an array, by definition, is a collection of elements of the same type. And how the array suddenly began to include both strings and numbers is not clear, but, nevertheless, I will leave the answer below (MB will help)
There is a method called delete_at
...
Try to run an array of all your values \u200b\u200bthrough this function, it should help.
Example:
a = [10, 12, 14, 16, 18]
a.delete_at(3) # Возвращает 16.
# а равно [10, 12, 14, 18]
a.delete_at(9) # Возвращает nil {вне диапазона).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question