Show Default Value in Text box - InfoPath Dev
in

InfoPath Dev

Show Default Value in Text box

Last post 04-07-2013 10:15 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-03-2013 03:06 AM

    Show Default Value in Text box

     All,

    Recently ran into an issue where by I was using a field for a filename, this filename was then used to create a url. Unbeknownst to me, the filename was going to contain 'illegal characters i.e. blank spaces &/\*?<>:'.()[]  . The blank spaces issue I already knew about and was 'translating' blank spaces into underscores.

     A quick google and I came up with a list of other 'illegal' characters.  so my final default value was : translate(Input, " &/\*?<>:'.()[]", ""). That's great. All seems to work pretty well. In my testing, rather than write a rule, I changed my filename text boxy field to a calculated value.

    Yet, each time I wanted to change my default formula, I have to un do my calculated value and change it back to text.  This got me thinking how can I show the formula in another text of a default value? Not the end result, but the actual formula?

    This I think would be really useful for troubleshooting as you're crafting a formula.

    Filed under:
  • 04-07-2013 10:15 PM In reply to

    Re: Show Default Value in Text box

    Thanks for sharing! That's a good technique. Or, you could put the formulas on a debug view as plain text. :)
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.