M
Monkey
Hey!
I'm trying to allow the content of one field to change the value of other
fields. For example, if someone put in a certain name in the CustomerName
field, a certain company would then appear in the CompanyName1 field. I've
got this code:
function msoxd_my_CustomerName::OnChange(eventObj)
{
if (CustomerName.value==customer[0])
{
CompanyName1.value=="your mom inc.";
}
}
but it's obviously not working...I finally got it to stop giving me errors
by butchering some auto-code that InfoPath gave me, but, while it's stopped
complaining, it still won't work. I don't know JScript too well, so I'm
completely lost. What am I doing wrong?
Thank you!
I'm trying to allow the content of one field to change the value of other
fields. For example, if someone put in a certain name in the CustomerName
field, a certain company would then appear in the CompanyName1 field. I've
got this code:
function msoxd_my_CustomerName::OnChange(eventObj)
{
if (CustomerName.value==customer[0])
{
CompanyName1.value=="your mom inc.";
}
}
but it's obviously not working...I finally got it to stop giving me errors
by butchering some auto-code that InfoPath gave me, but, while it's stopped
complaining, it still won't work. I don't know JScript too well, so I'm
completely lost. What am I doing wrong?
Thank you!