Format a TextBox To copy to a date field - InfoPath Dev
in

InfoPath Dev

Format a TextBox To copy to a date field

Last post 11-23-2009 02:27 PM by Frederik Van Lierde. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-23-2009 06:52 AM

    • mixons
    • Not Ranked
    • Joined on 11-23-2009
    • Posts 1

    Format a TextBox To copy to a date field

    I need to create a infopath form in sharepoint whit a SPD Worfflow , but when i try to create the date field i can´t because this field don´t permit to edit, my solution for this issue is copy de date for the sharepoint list to the form , so i change de the date field to a string field in infopath  , but i cannot format the text . The Sharepoint List send to the Infopath form de date + time "00-00-0000 00:00:00" y need to remove the time .

     Please Help me!!...

     

    Filed under: ,
  • 11-23-2009 07:04 AM In reply to

    Re: Format a TextBox To copy to a date field

    The substring-before() function is your answer:

    http://www.w3.org/TR/xpath#function-substring-before

    http://office.microsoft.com/en-us/infopath/HP011552811033.aspx

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 11-23-2009 02:27 PM In reply to

    Re: Format a TextBox To copy to a date field

    Hi

     

    Date as DataType can't be edited when publishing the form to SharePoint,  therefore your Workflow can not fillin the field.

    You can change the field to DateTime in the InfoPath DataSource, this way the WF in SharePoint will be able to fill it in.

    When you need the dateonly in InfoPath, format the field in InfoPath and keep the complete DateTime in the XML behing.

     Have a look at my blig for several solutions for using Dates and InfoPath on http://BlueInfoPath.wordpress.com

     

     

     

     

    Frederik Van Lierde
    Blue InfoPath Blog  ¦  SilverSands Associate  ¦  Do you follow me already?  ¦  We work smart, not hard


    If this article was helpfull, don't forget to rate it, tnx!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.