Add WebParts on tabs/accordion
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
You can add a web part under the form and then replace it with JavaScript. Get more info:
viewtopic.php?f=1&t=92
viewtopic.php?f=1&t=92
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Did you add the web part onto the form page? Does it appear under the form?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Please, put HTML-control into a tab where you wish to append the web part. Put the following code into its Content property:
Next, open JS-editor and put the following code there:
Replace the highlighted number with the order number of the web part on the form page.
Code: Select all
<div id="wpPlaceHolder"></div>
Code: Select all
$('td[id^="MSOZoneCell_WebPartWPQ"]:eq(1) > table')
.detach()
.appendTo('#wpPlaceHolder');
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
I've highlighted it in my code, here: td[id^="MSOZoneCell_WebPartWPQ"]:eq(1)
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
it's just an order number of the web part on the page: 0,1,2...
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests