How can a date field change update another field

How can a date field change update another field

panzrampanzram Posts: 29Questions: 11Answers: 0

Hi,

How can I reload/update a modal field when I change a date field in the same modal, client-side. When I change a date field, I want another field to display the corresponding currency rate for that day. The users can still change the currency rate after this, so it's like a starting value or suggestion. How can I get this to work?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Sounds like a good use for the dependent() method. It is basically an event handler that will be triggered when your date field changes value and you can then instruct it to update other field values (via Ajax or a local function depending on where your data is).

    Allan

  • panzrampanzram Posts: 29Questions: 11Answers: 0

    That's what I suspected, that or a on change event. Thanks a bunch.

This discussion has been closed.