InfoPath Field Property - InfoPath Dev
in

InfoPath Dev

InfoPath Field Property

Last post 08-22-2005 12:16 PM by Agni Jonnalagadda. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-18-2005 10:54 AM

    InfoPath Field Property

    Hi,

    Is there a way to set an InfoPath field property to ReadOnly in code.

    Thank You
    -Vasudha
  • 08-18-2005 11:20 AM In reply to

    Re: InfoPath Field Property

    Hi Vasudha,
    Fields(Controls)in InfoPath cannot be referred in c# code directly.
    What you can do is create a seconadry dom variable,
    use this secondary dom variable to conditionally make the InfoPath field readonly and
    using the c# code set the seconadry dom variable.

    Hope this Helps!

    Agni
    InfoPath Dev India
  • 08-22-2005 11:16 AM In reply to

    Re: InfoPath Field Property

    Hi Agni,

    Thanks for the update. Is it possible for you to provide an example.

    Thanks
    -Vasudha
  • 08-22-2005 12:16 PM In reply to

    Re: InfoPath Field Property

    Hi Vasudha,
    There is another way you can do this, you can write a c# mothod that returns a bolean value whether to show/hide section and call this method in the conditional formatting of the field using xdExtension.

    Note: In one of your previous posts I have given links which give info on xdExtension.

    Sorry I will not be able to provide an example because it takes time build all of that.
    But we do paid service if you want, you can talk to Patrick if you need any paid service.

    Agni
    InfoPath Dev India
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.