Having an issue setting a value dynamically to a radio button list

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Having an issue setting a value dynamically to a radio button list

Rizwan
Iam trying to set the value to the radio button list, upon clicking on the the conformaton dialog
     <fr:alert-dialog id="fr-confirmation-dialog-eee" close="true">
                                    <fr:message>Do you want to send the bill as a Draft or a Final document? </fr:message>
                                    <fr:label>confirm</fr:label>
                                    <fr:negative-choice class="xbl-fr-alert-dialog-negative">
                                        <fr:label>Final</fr:label>
                                        <xf:action ev:event="DOMActivate">
                                            <xf:setvalue ref="$form-resources/DraftOrFinal" value="'final'"/>
                                        </xf:action>
                                    </fr:negative-choice>
                                    <fr:positive-choice class="xbl-fr-alert-dialog-positive">
                                        <fr:label>Draft</fr:label>
                                        <xf:action ev:event="DOMActivate">
                                            <xf:setvalue ref="$form-resources/DraftOrFinal" value="'draf'"/>
                                        </xf:action>
                                    </fr:positive-choice>
      </fr:alert-dialog>
<xf:setvalue ref="$form-resources/DraftOrFinal" value="'final'"/> is not changing the value of radio button dynamically
waiting for your quick replay , thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: Having an issue setting a value dynamically to a radio button list

Alessandro  Vernet
Administrator
Hi Rizwan,

Is this in a form you've created with Form Builder, to which you've added this dialog? Most likely you'll want to set a value in the fr-form-instance, i.e. xxf:instance('fr-form-instance')/my-section/my-field, not in the form resources.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet