InfoPath Form and Save - InfoPath Dev
in

InfoPath Dev

InfoPath Form and Save

Last post 08-10-2005 09:23 AM by Vasudha. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-08-2005 08:40 AM

    InfoPath Form and Save

    Hi,

    I use roles in my InfoPath Form and the Form is published to a SharePoint Form Library. Is there a way to disable (read only) certain fields in the form after the user saves the form (to prevent the user from editing the form afer the submit).

    Thank You
    -Vasudha
  • 08-08-2005 12:43 PM In reply to

    Hi Vasudha, Welcome to the forum!
    Write a method in your formcode that returns true if the form is new and false if it is false.
    for ex:-
    public bool isNew()
    {
    return thisXDocument.IsNew;
    }

    Now set conditional formatting on you textbox(any control), and call the above method with xdExtension functionality.
    You can find more info about xdExtension at
    http://www.infopathdev.com/howto/bugs/default.aspx?i=afa2d89e65b44b1b83a282244d08de8b
    http://www.infopathdev.com/howto/tutorials/default.aspx?i=88f921f13dec4e7cae61191bac084fff

    Hope this helps!

    Agni
    InfoPath Dev India
  • 08-10-2005 09:23 AM In reply to

    Thanks for the reference. I am able to implement this functionality.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.