Custom Input - Passing data from HTML form to Uipath

Hi all,
I have a selection drop down list in html form which i invoked using custom input activity. I want selected input from drop-down list to be accessed in uipath also (for further excel activities).


attaching SS of my form herewith, its working fine. here β€œP11” need to access in uipath. this month value is stored in a variable of javascript.Is there any way to access that variable or is it possible to pass that variable to uipath.
If anyone knows .kindly help me out!:innocent:
Thanks!

@ramees.pk
Find Here an example and have closer Look on the Javascript Part setresult for returning the Form data
https://docs.uipath.com/activities/docs/custom-input

1 Like

Hi @ramees.pk,
Yes, you can pass the data from html to uipath. To achieve this you need to write the java script in your custom html.

    function OnSelect()
      {
        var selectedOption = document.getElementById("Your_Id_Name").value;
        window.external.setResult(selectedOption);
        return true;
      } 

β€œYour_Id_Name” is a value of your id attribute.

1 Like

Thanks A lot !!!:heart_eyes:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.