Accordion Expand
Hello,
I have an accordion in form. When I open this form, all tabs expand except first tab. How do I expand first tab when I open this form?
http://prntscr.com/941zcf
Here's my current code:
$('#fd_accordion-0 > h3:eq(0)').click()
$('#fd_accordion-0 > h3:eq(1)').click()
$('#fd_accordion-0 > h3:eq(2)').click()
$('#fd_accordion-0 > h3:eq(3)').click()
$('#fd_accordion-0 > h3:eq(4)').click()
I have an accordion in form. When I open this form, all tabs expand except first tab. How do I expand first tab when I open this form?
http://prntscr.com/941zcf
Here's my current code:
$('#fd_accordion-0 > h3:eq(0)').click()
$('#fd_accordion-0 > h3:eq(1)').click()
$('#fd_accordion-0 > h3:eq(2)').click()
$('#fd_accordion-0 > h3:eq(3)').click()
$('#fd_accordion-0 > h3:eq(4)').click()
OK, this is happening because one of the tabs (in this case - the first one) is opened by default, so what you're doing is closing it. Probably best you just set which tabs are opened by default in Forms Designer. Go to Forms Designer, select the accordion, look to the right, you'll see the "Expanded" field. Enumerate here all your tabs, starting from 0, like this:
0,1,2,3,4
0,1,2,3,4
-
- Posts: 16
- Joined: Mon Apr 11, 2016
Hi,
By default when I cleck new form , The first accordion tab will be expanded. i need to collapse every tab on New form and need to expand only when I clicked the tab. how can I resolve this?
I added this on Page load
$('#fd_accordion-0 > h3:eq(0)').click()
But its not working
By default when I cleck new form , The first accordion tab will be expanded. i need to collapse every tab on New form and need to expand only when I clicked the tab. how can I resolve this?
I added this on Page load
$('#fd_accordion-0 > h3:eq(0)').click()
But its not working
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Open the designer, select the Accordion, and clear the Expanded property. Then clear cookies.
-
- Posts: 16
- Joined: Mon Apr 11, 2016
Still Not working. I didnt enter any tab index on Expanded property an I cleared the cookies.
Issues on
1. Click New form expand first tab and then click cancel button.
2. Again click New form , Now the first tab is expanded without clicking on it.
But when we collapsed all tab and click cance button and again click new form all tabs are in collapsable. Thats the issue
Issues on
1. Click New form expand first tab and then click cancel button.
2. Again click New form , Now the first tab is expanded without clicking on it.
But when we collapsed all tab and click cance button and again click new form all tabs are in collapsable. Thats the issue
-
- Information
-
Who is online
Users browsing this forum: No registered users and 18 guests