Announcement Announcement Module
No announcement yet.
radio button binding in webflow2 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • radio button binding in webflow2

    Here's a summary of the problem, and a webflow 1 solution:

    -Radio buttons that are not checked are not updated during bind b/c they are not sent by the browser.

    -Our application may uncheck radio buttons at the client when the user makes certain other selections on the form. An unchecked button is a valid condition.

    -Since the unchecked button does not get updated during bind, the old value is still present in the form backing bean / model

    In webflow 1, I simply overrode bind and bindAndValidate to first clear the value in the form backing bean, then call super.bind(...) etc...

    In webflow 2, this may still be possible, but binding to a model is the preferred method.
    One option might be to clear the value in the model associated with the radio button in a evaluate tag within the transition:

    <transition on="next">
    <evaluate expression="model.clearRadioValue()" />

    Does anyone know if the <evaluate> expression happens prior to binding/validating?



  • #2
    Not certain, but I'm pretty sure it's after binding and validation.