Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Create script elements on button click?

Community Beginner ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

I wan't to create a new panel and 2 buttons when a button is clicked, but I just can't figure out why the code I have so far doesn't work.

 

Can somebody help me out?

TOPICS
Scripting

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 , Jul 12, 2021 Jul 12, 2021
If I remeber correctly you have to define the layouts already at the start and then only show/ hide them. They cannot appear in nested functions because they need to register right at the start of the script. There's several threads on this as it also pertains to changing icons and button lables dynamically. Spending a bit of time with a search may dig them up. Mylenium

Likes

Translate

Translate
Adobe Community Professional ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

LATEST

If I remeber correctly you have to define the layouts already at the start and then only show/ hide them. They cannot appear in nested functions because they need to register right at the start of the script. There's several threads on this as it also pertains to changing icons and button lables dynamically. Spending a bit of time with a search may dig them up.

 

Mylenium

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