Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script Remember Last Input Value

Engaged ,
Apr 12, 2020 Apr 12, 2020

The UI has 4 radio buttons and 4 editable text input fields. The editable fields have a default value "Edit Text". The objective is that the user enters a custom value in the text input field and runs the script.  

 

1)  Can a jsx script remember the last text input value used so that the next time the UI dialog runs the value appears in the text input field?

2) Allow the user to reset the dialog text input field to the default value.

3) What are the jsx functions that allow this behavior?

 

The idea is:

if the text input value is not equal to the default value,

the new text input value becomes a temporary variable,

the temporary variable becomes the default text input value,

then the user clears the temporary variable,

if the temporary variable is empty,

the script returns to the default text input value

 

Screen Shot 2020-04-12 at 8.57.11 AM.png

 

 

TOPICS
Actions and scripting
399
Translate
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
no replies

Have something to add?

Join the conversation
Adobe