• Resolved nikobalt

    (@nikobalt)


    Hello,
    I’m trying to get a minimum range for a number field, which depends on a radio button :
    – In a form to subscribe a membership, the future member chooses the payment terms
    – The membership is 10€ minimum per month
    – He can choose to pay more
    – He can chose whether he will pay by month, three months or six month, using a radio button
    – Depending on this radio button, the minimum value of the field will be 10, 30 or 60
    – The placeholder is the minimum range
    Can we do this with DTX ?

Viewing 1 replies (of 1 total)
  • DTX only prefills data on page load, not with user engagement, so if your form was a multi-step form where the user submitted the value of the radio button, or if that value was pulled from their account or something, then the form could pull that value saved from the DB or URL parameter to autopopulate it.

    Otherwise, you’ll need custom JS to listen for when the radio button has been clicked on and then update the attribute accordingly.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic minimum range for number field’ is closed to new replies.