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?

有帮助吗?

解决方案

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.

其他提示

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?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top