Hide disable a tab with a check box
Hi,
I would like to enable a tab when a check box is ticked and when unticked the tab is disabled. I have seen;
if (fd.field('CheckboxField').value()) {
// Checked
} else {
// Unchecked
}
and http://spform.com/forms-designer- ... point-2010
however i am unsure how to layout the correct javascript to disale/enable a tab with a check box.
I have a similar thing working else where but its not based on a check box
I would like to enable a tab when a check box is ticked and when unticked the tab is disabled. I have seen;
if (fd.field('CheckboxField').value()) {
// Checked
} else {
// Unchecked
}
and http://spform.com/forms-designer- ... point-2010
however i am unsure how to layout the correct javascript to disale/enable a tab with a check box.
I have a similar thing working else where but its not based on a check box
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Try this:
Try this:
Code: Select all
if (fd.field('CheckboxField').value()) {
// Enable all tabs
fd.tabControl(0).tabs('option', 'disabled', null)
} else {
// Disable second tab
fd.tabControl(0).tabs('option', 'disabled', [1])
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 21 guests