Prompt command - use two variables for the digits before and after dash

If user enter account number which is 22303839-11 then I will need to create two variables for the digits before and after dash. The website has two bars like this: Capture

I will need to create first variable for 22303839 then second variable for last two digits 11 so a user doesn’t have to enter twice for both. Three prompts (two for account number and one for password) become two prompts. Shorter prompts the better.

You can use exectueScript_Sandbox and the Javascript “Split” command:https://www.w3schools.com/jsref/jsref_split.asp

1 Like

So I did the split thing and it came out as undefined. Do you think you could help me solve this? Here are images. Capture
Capture

@Saryon Did you succeed in achieving this split?
Appreciate if you could share the JSON with the exectueScript_Sandbox script.
Thanks!