Spawn page template with hyperlink button

Explorer ,
Mar 15, 2021 Mar 15, 2021

Copy link to clipboard

Copied

I'm working on a file that will use a page template to spawn additional pages of fields for the user to enter if required (replacing a spreadsheet with a PDF and the client wants to give people unlimited space to record info). One of the things we're doing is letting them fill a field with the link address and then using a button with a mouse up / run Javascript command to launch the hyperlink with this code

app.launchURL(this.getField("LinkStart1").valueAsString);

 

Obviously since this is programmed inside the button, the field name isn't changing from the page template when it spawns so the button no longer points to the right field.

 

Is it at ALL possible to get the buttons to work how I'm envisioning? The other option is to just make it a Rich Text field, but I feel like that's not as user friendly. (Or to ditch the page template idea on this particular document and just start with 6 pages of fields and when you run out of space you're done.)

 

Eager to hear your genius solutions, you lovely people!

TOPICS
JavaScript, PDF forms

Views

77

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation