How can I clean some form fields?

Hello @Teodor ,

I need to info . I have created update form . it is working very well no problem … But I need to little help from you …

NAME :
MIDDLE NAME
SURNAME

I want to clean name field when I filled to middle name and clean to middle field when I filled to name field …

How can I do that ? can you guide me

Just use an dynamic events onclick event to set the current value of the other field
i.e.
dmx-on:click=“form1.name.setValue(’’)”

1 Like

thank you @Hyperbytes

should use change/updated event instead of onclick i guess because onclick will not work if tab is pressed on keyboard, right?

1 Like

Good point @nshkrsh