Choice section related - InfoPath Dev
in

InfoPath Dev

Choice section related

Last post 02-23-2007 10:00 PM by shekar. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-23-2007 02:23 AM

    • mrudula
    • Top 500 Contributor
    • Joined on 02-14-2007
    • India
    • Posts 31

    Choice section related

    I have choice grp in which I have choice section 1)A 2)B 3)C
    I want to check through coding which of the section is selected by user in that particular form. I want the name of the choice section i.e A or B or C.
    How do I do that?

    Thanks in advance
  • 02-23-2007 10:00 PM In reply to

    • shekar
    • Not Ranked
      Male
    • Joined on 07-26-2006
    • India
    • Posts 22
    Hi mrudula
    The following script may help you.
    Write code here to restore the global state.
    1. Create a choice group with three goups
    2. Copy the following code to the Main Group onafter change event.
    3. Preview the form.

    if (eventObj.IsUndoRedo)
    {
    // An undo or redo operation has occurred and the DOM is read-only.
    return;
    }
    if(eventObj.Operation == "Insert")
    {
    //Popups the group name you selected in message box.
    XDocument.UI.Alert(eventObj.Source.baseName);
    }

    Hope it 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.