Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Can we call any function on panel's add(plus symbol) ,delete(minus symbol) buttons?

Avatar

Not applicable

Hi,

PFA

I have a repeatable panel(Applicant).I added sub-panels under this.I have another repeatable panel(Employment).In this panel i am reading First panel's name in a drop Down.My issue is when i am deleting any sub panel from the panel(Applicant) the drop down in panel(Employment) not refreshing.it's still showing same values.

Can we call any function on panel's add(plus symbol) ,delete(minus symbol) buttons?

~R

1 Accepted Solution

Avatar

Correct answer by
Employee

The + and - button are not present as AF component and are part of layout so they are not configurable by default. You can customize accordion layout for which you add button in the layout and write click script for updating the drop-down. Alternatively you can use any other layout and drop buttons and add the script

this.panel.instanceManager.addInstance();

in the click expression for simulating + button and 

this.panel.instanceManger.removeInstance()

to simulate - button.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

The + and - button are not present as AF component and are part of layout so they are not configurable by default. You can customize accordion layout for which you add button in the layout and write click script for updating the drop-down. Alternatively you can use any other layout and drop buttons and add the script

this.panel.instanceManager.addInstance();

in the click expression for simulating + button and 

this.panel.instanceManger.removeInstance()

to simulate - button.