Method is not activated?? - InfoPath Dev
in

InfoPath Dev

Method is not activated??

Last post 08-21-2006 06:46 AM by Millie. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-21-2006 03:02 AM

    Method is not activated??

    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
  • 08-21-2006 04:18 AM In reply to

    Re: Method is not activated??

    Hey,

    When is the data automatically being filled in? Is it when the form is loaded or when the user clicks a button?

    MB
  • 08-21-2006 06:46 AM In reply to

    Re: Method is not activated??

    hi
    Thanks for your interest in helping me!
    Luckily I just managed to solve the problem!
    I can do this without code but with the help of rules. In fact really simple, but what is not simple when you know the solution?!

    Thanks again,
    Millie


Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.