S
|
skbrasil 3/17/2021 |
I'm having difficulty adapting a code for my project, I need to add days to a date with javascript but the result is expected, could someone help me follow the code below var ctrlinicio = Runner.getControl(pageid, 'inicio'); var ctrln_dias = Runner.getControl(pageid, 'n_dias'); var ctrltermino = Runner.getControl(pageid, 'termino'); function func() { ctrltermino.setValue(Number(ctrlinicio.getValue()) + Number(ctrln_dias.getValue())); }; ctrlinicio.on('keyup', func); ctrln_dias.on('keyup', func); |
S
|
skbrasil 3/17/2021 |
|
brito author 3/17/2021 | |
|
fhumanes 3/18/2021 | |
Hello:
|
brito author 3/19/2021 | |
Hello: I codified this example that I think gives solution to your problem.
|