Expand my Community achievements bar.

Link with short name (clickable)

Avatar

Level 1

Hi guys,

I've got an problem coding right here.

I made a form wich a user can fill in and then print as pdf to merge all data such as images and text.

But now some difficulties are showing up, because; now i need to add an text field were the user can fill in an URL, not that difficult, but the URL is too long to eventually fit in the design i've made.

Is there a way to let the user fill in an URL and when the user prints to PDF that the URL will be shortened but STILL CLICKABLE?

Maybe there's another way to do it? Could it be done with buttons and a tekst field; when the user prints to PDF, that the link will be replaced by a button (that reads the content of that text field)???

I hope somebody can help me out around here!

Thanks a lot!

Greetings Daan

1 Reply

Avatar

Level 10

I have created a sample for you.

You can download the PDF from here and see the javascript code written on exit event of the two text fields.

https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B8KcjZtz1YzXNDVmMmQ0YTUtMTJmYi00Y...

URL.png

Nith