79837642

Date: 2025-12-04 07:50:56
Score: 0.5
Natty:
Report link

Background

You created a Custom Form containing three fields:

When the automation runs, the URL field shows a dropdown list (based on the choices you provided).
Then you display a message box and try to show:

%CustomFormData['URL']%

But the message box displays the literal text, not the actual value.

Root Cause

Custom Form data returns a JSON string, not a direct object.
So %CustomFormData['URL']% will not work until you convert it.


Possible Solution

Step 1 — Convert Custom Form JSON to Object

Use action:

Convert JSON to custom object

Input JSON:%CustomFormData%

Output variable: JsonAsCustomObject

This lets PAD read your Custom Form data properly.

Step 2 — Parse the URL from the object

Add action:

Parse text

Text to parse: %JsonAsCustomObject%

Text to find (regex): https[^"'\s]+

Explanation of the regex:

https → Matches URLs that start with https

[^"'\s]+ → Continue matching until a quote, space, or newline appears

Output variable: Matches

This will extract the actual selected URL.

Final Step — Display the extracted URL

In your message box, just use: %Matches%

Now the URL will appear correctly instead of a plain text placeholder.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MOK ZHI HEE