سؤال

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