Question

I have client sided code in the onClientLoad event of my form that governs field hiding. Problem is, it depends on values in the first tabPanel. If I switch to the second tabPanel, it stops working. I can no longer switch back to any other tabPanel.

How can I within the onClientLoad event using CSJS identify which panel I currently am on?

Was it helpful?

Solution

In a tab panel whenever you switch between tabs the fields are recalculated.

So, I would rather suggest you to put a visibility formula on field instead.

OTHER TIPS

Make sure all tab panels have a nice id. Then in your script block you can add something like:

  var t1 = dojo.byId("#{id:tab1}");
  if (t1) { // do your stuff }

Does it work for you?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top