Hi all, this is my first post. My project is for web navigation/scraping and I need some help.
I have an HTML form that asks for “Client SSN, Account Number, and Destination”, using Custom Input activity.
The output is stored in one variable in the HTML file.
window.external.setResult(SSN + "|" + Account + "|" + Destination);
I am using the Assign activity to break out the values separated by the | char.
Value_SSN = SearchValues.Split(CChar("|"))
Next, I want to save those split values into their own respective variables.
Can anyone offer guidance on how to complete this?
Thank you!
HTML form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Intelifi</title>
</head>
<body>
Client SSN:<br>
<input type="text" id="SSN"><br>
Account Number:<br>
<input type="text" id="Account"><br>
Destination:<br>
<input type="text" id="Destination"><br>
<button onclick="SubmitValues()">Submit</button>
<script type="text/javascript">
function SubmitValues(){
var SSN = document.getElementById("SSN").value;
var Account = document.getElementById("Account").value;
var Destination = document.getElementById("Destination").value;
window.external.setResult(SSN + "|" + Account + "|" + Destination);
return true;
}
</script>
</body>
</html>