Reset function

New Here ,
Jun 20, 2022 Jun 20, 2022

Copy link to clipboard

Copied

I have a function that resets all fields to "" after a certain amount of time. I have noticed that if I am actively typing in a field and the timer expires its does not set that field to "", but sets that other field to blank. Is there a way to unfocus the field in the script so it can reset?

TOPICS
JavaScript

Views

33

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Jun 20, 2022 Jun 20, 2022

You can use the setFocus method in your code on another field, yes.

For example:

this.getField("DummyField").setFocus();

Likes

Translate

Translate
Adobe Community Professional ,
Jun 20, 2022 Jun 20, 2022

Copy link to clipboard

Copied

LATEST

You can use the setFocus method in your code on another field, yes.

For example:

this.getField("DummyField").setFocus();

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines