Copy link to clipboard
Copied
As you can see, there is a submit button trigger action to submit form. how can I change the url when this button is clicked, for example append datetime to the url so the form data will be send to button.ca/reports?datetime=20170727091214 instead of button.ca/reports
Copy link to clipboard
Copied
You can create a Javascript action that submits your form. Take a look here for information about the Doc.submitForm() method:
By using the JavaScript approach, you can dynamically adjust your submission URL.
Copy link to clipboard
Copied
Instead of the Submit Form action add a Run JavaScript command to your button's Mouse Up event, with this code:
var targetURL = "http://button.ca/reports?datetime=" + util.printd("yyyymmddHHMMss", new Date());
this.submitForm({cURL: targetURL, cSubmitAs: "PDF"});
Copy link to clipboard
Copied
Does this tool support submit to facebook?
Thank you
Copy link to clipboard
Copied
Vietten:
Can you elaborate?
Copy link to clipboard
Copied
What would "submit to Facebook do"? I can't even imagine what you'd want to happen, but I suspect the answer must be no.
Copy link to clipboard
Copied
I can't even imagine what you'd want to happen either, but I suspect the answer is actually yes.