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

rk87627770 25-02-2016

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

Mark Solution

Are these answers useful?
Help other community members by marking useful answers as accepted.

Accepted Solutions (0)

Answers (1)

Answers (1)

mandeepg6805152
Employee
25-03-2016

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.