There is a project on Bitrix, I am polling through the standard complex component of the vote, how to get the value (value) of input type = "radio"?

We deduce the component, respectively, for all the answers, the output is built through foreach.

The ultimate goal is for Yandex.Metrik to drop the results selected by users (Yes / No).

May have encountered?

  • where can I see? In general, we send an onclick or event submission to the form submission, read the required fields and fill in the object according to the scheme - Taarim
  • case 0://radio?> <label> <input <?=$value?> type="radio" name="vote_radio_<?=$arAnswer["QUESTION_ID"]?>" value="<?=$arAnswer["ID"]?>" <?=$arAnswer["~FIELD_PARAM"]?> />&nbsp;<?=$arAnswer["MESSAGE"]?> <span></span> </label> <br /> <?break?> - K.Mitnick
  • With the answer "Yes" value = 1, with "no", respectively, value = 2 (input value) - K.Mitnick

0