Hi All,
Does anyone know the CRM JScript method for contains? I am trying to run a check to see if a field on my form contains a string. I have created the following code but when it is run I get the error "Method Not Supported".
if (crmForm.all.new_connote.DataValue.conatains('CPAY'))
{
crmForm.all.new_courier.DataValue = 4
crmForm.all.new_courier.Disabled =
true
}
else if (crmForm.all.new_connote.DataValue.contains('WCP'))
{
crmForm.all.new_courier.DataValue = 7
crmForm.all.new_courier.Disabled =
true
}
else
{
crmForm.all.new_courier.DataValue = 5
crmForm.all.new_courier.Disabled =
false
}
Thanks in advance for your help.
Sam.
*This post is locked for comments
I have the same question (0)