Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

controlling submit button manually

Avatar

Former Community Member

Hi

I have a button which is made as submit type and submit it as PDF and a url was given which is working as per the requirement.

Now the new requirement is the Submit URL should get dynamically change based on the some value in the pdf, so can i control the url manually and also it should act like a submit button(like firing of validations etc).

I tried xfa.event.target="url"; but that button doesn't act like submit button then after.

Pls help.

Thanks

Abhiram

1 Reply

Avatar

Former Community Member

You can modify the URL of the submit button through code. Of course you woudl do this before pressing it.

The command woudl be

submitButtonName.event_click.submit.target = "new URL "

Paul