Hi
I am automatically filling several fields. Now I want following:
If one of the automatically filled fields is filled with a String that contains "BB" Infopath should write "BigBreakfast" in another field.
Well I wrote some code, but now I get desparate because this code is never called! I tried several methods like "OnAfterChange" or "OnValidation" but its wrong.
And, by the way, my code is following:
"function msoxd_my_Field::OnValidate(eventObj)
{
var input = XDocument.DOM.selectSingleNode("/dfs:myFields/my:Field");
if (input.text == "%BB%")
XDocument.DOM.selectSingleNode("/dfs:myFields/my:Field").text =BigBreakfast;"
Thanks,
millie