Copy field value to another simultaneously

Copy field value to another simultaneously

N-tronelN-tronel Posts: 7Questions: 4Answers: 0
edited September 2020 in Free community support

Hi everybody,

Maybe it's a dummy question but I'm stucked and I need your help ...

In my project I have 2 date fields. First : Arrival date / Second : Check-in date . I would like to fill the second field automatically with the same date from the first.

Usually a simple jquery code works, like this :

var $first= $('#DTE_Field_arrival_date'),
$second = $('#DTE_Field_check_in_date');
$first.on('input', function () {
$second.val($src.val());
});

But apparently, not in datatables editor. Can somebody help me ?

Thank you !

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    If you're referring to updating it on change, you can use e-dependent() to do that - it allows you to do an action based on the change of a field.

    Colin

This discussion has been closed.