I have created a custom list input form based on the default New.aspx template. I have tabs on my form, so I need some javascript to activate the selected tab. I have all of the code written, but I can’t figure out where to put the <script />. If I put it in the header areas above or below the <ZoneTemplate> tags, I get various errors and the buttons on the ribbon stop working. If I put it in between the <ZoneTemplate> tags, the form loads, but not the javascript. Any help is appreciated.
J–
Bascially, you want to put the code to set the active tab on the server side, not with javascript. Heres an example of a Sharepoint tabbed multiview:
You then need to write a function server side to handle the tab clicks:
And a function to handle the Active View switching:
This is all written in VB. so if you have any questions, I’d be happy to answer. I hope this gets you on the right track. For clarity, I haven’t added anything related to page validation.