Need help to hide a tab
Posted: 04 Feb 2015
Hello,
I am trying to disable a tab until the user has chose a certain option in a drop down menu. how would i go about programming this?
This is what i have so far however it is not working...
function setPhoneTab()
{
var status = fd.field('Choose_x0020_contact_x0020_optio').control().value();
if (status == 'Letter')
{
$('#fd_tabcontrol-o').tabs('option', 'disabled', null);
}
else
{
$('#fd_tabcontrol-o').tabs('option', 'disabled', [1]);
}
}
var status = fd.field('Choose_x0020_contact_x0020_optio').control().chnage(function()
{
setPhoneTab();
});
setPhoneTab();
I am trying to disable a tab until the user has chose a certain option in a drop down menu. how would i go about programming this?
This is what i have so far however it is not working...
function setPhoneTab()
{
var status = fd.field('Choose_x0020_contact_x0020_optio').control().value();
if (status == 'Letter')
{
$('#fd_tabcontrol-o').tabs('option', 'disabled', null);
}
else
{
$('#fd_tabcontrol-o').tabs('option', 'disabled', [1]);
}
}
var status = fd.field('Choose_x0020_contact_x0020_optio').control().chnage(function()
{
setPhoneTab();
});
setPhoneTab();