How to automatically populate textbox the first time it's opened - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How to automatically populate textbox the first time it's opened

Last post 12-15-2010 04:26 PM by augustwind. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 12-15-2010 07:45 AM

    How to automatically populate textbox the first time it's opened

    Using 2010 

    I'd like it so that one textbox is populated with the now() function the first time it loads - - but once it's saved and/or submitted to the library, it keeps that date/time.

    So beyone setting a rule so that if it's blank, set the field value to now(), is there anything else or any other way this should be done?

     

  • 12-15-2010 08:49 AM In reply to

    Re: How to automatically populate textbox the first time it's opened

    Sounds good to me.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 12-15-2010 02:06 PM In reply to

    Re: How to automatically populate textbox the first time it's opened

    I tried this and actually got it working, however, the only way this number shows up, is if the datatype is set to text.

    If I set it to a whole number, with no formatting (commas), then it doesn't show up in the Library field. Is this normal? (i thought it would sort better if it was numeric)

  • 12-15-2010 03:01 PM In reply to

    Re: How to automatically populate textbox the first time it's opened

    I'm not sure how now() would be a number? now() is going to be date and time, with hyphens, colons and a "T" in the middle.... Don't you want a datetime data type?

    Hilary Stoupa

  • 12-15-2010 04:26 PM In reply to

    Re: How to automatically populate textbox the first time it's opened

    Sorry - I kind of combined two messages into one.

    I removed all the dashes, colons and the 'T' - - so I thought - hey - why not make it a number, since all the characters were numeric.

    but it didn't work.....

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