Skip to main content
Christopher Teacher
Known Participant
January 13, 2023
Answered

Dropdown List exporting a simplified link

  • January 13, 2023
  • 1 reply
  • 30185 views

I'm making a form with a dropdown list that exports a variety of values based on user selection.  Some of those values need to be web links; however, I would prefer they were not visible as the whole link, but rather as links embedded within text.  Is that possible, and if so, how would I do it? 

 

(Be aware, my knowledge of Javascript is pretty basic, but I'm good at copy/paste and I can change field names!)

This topic has been closed for replies.
Correct answer bebarth

Yes!  That worked perfectly!  I explored the form and saw what you did, and think I understand part of it.  You stacked everything together into that third column so that the button with the link is clickable and the corresponding text is visible.  I tried adding another option with a link, but I unfortunately wasn't able to follow your lead well enough to make it work.  Please help me out with that explanation!

 


Hi,

If you wish add an item with an url in your dropdown menu

you have to add it with an export value starting with link... (link2, link3...)

then you have to modify the init script in document-level

and define the link... object with the text, the url and the text size.

Try with the link3 object...

FYI, as it is not possible to use the auto size in a rich text field, you will have to set the size manually indicating it in the link object.

https://community.adobe.com/t5/acrobat-discussions/all-text-data-to-fit-in-a-rich-text-field-s-rectangle/m-p/13526601#M396185

I hope the explanation will allow you to add an other item yourself...

@+

1 reply

try67
Community Expert
Community Expert
January 13, 2023

You can't really create clickable text links with a script. You can set the entire text field (or button, or link object) to act as a link when clicked, but not parts of it.

Christopher Teacher
Known Participant
January 13, 2023

So that means if my export value for a particular dropdown selection was:

https://community.adobe.com/t5/acrobat-discussions/dropdown-list-exporting-a-simplified-link/m-p/13488534#M394395

 

... there's no way for it to show up in the text field as a clickable link that says "Exporting a simplified link"?

Christopher Teacher
Known Participant
January 19, 2023

Hi,

Sorry but I don't understand this time...

Is it possible you share an example?

@+


I can't really share an example file, but I can describe what I want it to do (and like I said; I think it's probably not possible).  

 

I want the exported value to act like an embedded link in an email or here in this message.  

 

I want my export for the dropdown selection of "Acadience Reading" to be: At or Above Benchmark - click for score table - where the link is embedded within the displayed text.

 

 

 

If not possible, then I've got another solution in mind where I wouldn't use any links at all, but where I would need to have two additional form fields / drop downs - one for grade level, and one for the time of year; the selection in these fields would then need to control the population of the dropdown list I've been working on - if that's possible.  For example: if a user were to select 1st grade at the beginning of the year (BOY), then the export value for Acadience Reading would be 113 or higher, whereas, if they selected 1st grade at the end of the year (EOY), then the export value for Acadience reading would be 155 or higher. 

 

If I have to go this second route, then I'll create a new thread since it's a very different operation.