Can we call any function on panel's add(plus symbol) ,delete(minus symbol) buttons? | Community
Skip to main content
February 25, 2016
Solved

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

  • February 25, 2016
  • 1 reply
  • 1059 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ifconfig

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.

1 reply

ifconfigAdobe EmployeeAccepted solution
Adobe Employee
March 25, 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.