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

Populate dropdown

Explorer ,
Jun 23, 2021 Jun 23, 2021

Copy link to clipboard

Copied

Hi, is there script i could use on a button field to populate dropdown field with export values instead of manually entering each value?

TOPICS
How to , JavaScript

Views

595

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

Community Expert , Jun 23, 2021 Jun 23, 2021

Yes in your button as Mouse UP event you can use something like this:
this.getField("Dropdown").setItems([["Item1", "1"], ["Item2", "2"], ["Item3", "3"]]);
where "1","2","3" are export values.

Votes

Translate

Translate
Community Expert ,
Jun 23, 2021 Jun 23, 2021

Copy link to clipboard

Copied

Yes in your button as Mouse UP event you can use something like this:
this.getField("Dropdown").setItems([["Item1", "1"], ["Item2", "2"], ["Item3", "3"]]);
where "1","2","3" are export values.

Votes

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
Explorer ,
Jun 23, 2021 Jun 23, 2021

Copy link to clipboard

Copied

LATEST

Thank you so much.

Votes

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