Modifying Control Default Values from C# - InfoPath Dev
in

InfoPath Dev

Modifying Control Default Values from C#

Last post 06-26-2008 11:46 AM by shekar. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-22-2008 08:11 AM

    Modifying Control Default Values from C#

    I am working on a form, where's there's several options, including "other". When the user chooses other, a textbox is enabled and allows the user to define their own value. Here's where my problem comes in. Once the user enters their own value, the "other' attribute becomes unchecked. The textbox is still enabled, with the user-defined value, but without that box checked, it creates all sorts of confusion.

     My "solution" for that problem, was to actually modify the "other"'s default value once the user inputs their own values. In doing so, the "other" option actually becomes enabled. However, I cannot figure out how to do it. I tried playing around in C#, but I cannot find anything that can modify that control's default value.

     Any ideas?


    Desired Output:

    [ ] option a
    [ ] option b
    [x] other Custom Value

    Actual Output:

    [ ] option a
    [ ] option b
    [ ] other Custom Value





     

  • 06-26-2008 11:46 AM In reply to

    • shekar
    • Not Ranked
      Male
    • Joined on 07-26-2006
    • India
    • Posts 22

    Re: Modifying Control Default Values from C#

    Hi

    Set rule on CustomValue(text field) field which enable the "other" check box after user enters their own value.

    Hope this helps you.

    Shekar
    http://www.ggktech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.