Formula changes when published as a browser form - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Formula changes when published as a browser form

Last post 04-15-2013 08:12 AM by TomRenfro. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-11-2013 09:29 AM

    • TomRenfro
    • Top 75 Contributor
      Male
    • Joined on 09-29-2011
    • Oklahoma City, OK
    • Posts 134

    Formula changes when published as a browser form

     When I use the help section controls found in the Qdabra InfoPath Starter form, it works fine if the form is small, that is not very many rules or controls.  Specifically, the rule Toggle Help, which is fired on the button control btnHelp.  The button has a formula for the label like this: concat(substring(translate(ToggleHelp, "truefalse", "HideShow"), 1, 4), " Help").  The button rule sets the Boolean field ToggleHelp to the following formula: not(ToggleHelp = "true").  The help section has a formatting rule to hide it if the value of ToggleHelp is false. 

    Here's my issue, and I really don't understand how it's happening and how I can change it.  When run in Filler the rules run as expected.  The ToggleHelp value is changed depending on what's returned byt the not() function.  In the browser, however, it seems the rule only fires once.  Just to see if I could figure out what's going on, I added an additional whole number field called Clicks, default value of 0, and added an additional button click rule that adds 1 to the value.  Again, when run in Filler, the number increments.  However, in the browser, only the first click changes the value to 1, all additional clicks return NaN.

    Don't really understand what's going on.  Thanks for any help.

  • 04-13-2013 07:35 AM In reply to

    Re: Formula changes when published as a browser form

     Try setting postback to always on the control and see if that resolves the issues (on the control's properties, on the browser tab, you'll find the postback setting).

    Hilary Stoupa

  • 04-15-2013 08:12 AM In reply to

    • TomRenfro
    • Top 75 Contributor
      Male
    • Joined on 09-29-2011
    • Oklahoma City, OK
    • Posts 134

    Re: Formula changes when published as a browser form

     That's it!  One day I'll think about the impact of postbacks when browser based forms go goofy.

    Thanks again Hilary.

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