cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

New custom wizard steps not loading in javascript correctly

crosato
2-Explorer

New custom wizard steps not loading in javascript correctly

A coworker and I are working on a new subtype interface, and he's doing the update screen trying to use wizards. Basically we have a expand/collapse js function that we are using to open/close certain aspects of a particular attribute. He's run into the following problem:


"I am customizing the edit document wizard by adding two additional wizard steps. One of my wizard steps works fine when it is the first step in the wizard. However, when I move it to the be the second or third step, none of my custom imported javascript code works. When using firebug in firefox, I see no other errors other than that my custom function "is not defined"."


We tried adding the function directly to the page, but the particular function it keeps failing on is still "not defined".

2 REPLIES 2
ddemay
7-Bedrock
(To:crosato)

Without any specific details.It's likely being loaded via Ajax. You might
even see it in the DOM, but not executable. Define it in advance from the
main wizard jsp page as an external js file.and invoke the code from your
steps. You can control via actions in steps how pages are loaded.if they
are loaded all initially are loaded with ajax.






Are you making the new steps hidden on some conditions ? if so, try setting
these steps preload=false in the actions.xml file.

You might need to refer to the customizers guide for this.

Praseeth M
Announcements


Top Tags