Send Email after a radio button is selected in a repeating table (OnAfterChange event) - InfoPath Dev
in

InfoPath Dev

Send Email after a radio button is selected in a repeating table (OnAfterChange event)

Last post 04-24-2009 04:13 AM by Svetoslav. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-24-2009 04:13 AM

    Send Email after a radio button is selected in a repeating table (OnAfterChange event)

    Hi all,

    I have to following problem considering a repeating table with the follwing of collumns:

    User   Email   Approve/Reject

    The collumn Approve/Reject consists of two radio buttons for approval or rejection. I want when a user selects one of the radio buttons, an automatic email notification to be send to a facilitator. I am currently using OnAfterChange event, to provoke the action. The code which I use is :

    var value = eventObj.Source.selectSingleNode("..").text ;

    var email = eventObj.Source.selectSingleNode("....").text ;

    var person = eventObj.Source.selectSingleNode("....").text;

    with the ... I have the XPath to the elements in the repeating table

    But this code selects only the 1st row of the repeating table, even though for instance I have pressed the radio button on the 6th row. And if I insert a new role, the event occurs again, which I cannot explain why. I have selected the OnAfterChange event from the Validations and Events Handelrs menu for the specific field in the repeating table. If someone has an explanation I would be very grateful to hear/read it.

    Best regards,

    Svetoslav  

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