You are viewing limited content. For full access, please sign in.

Question

Question

Clickable link in text field

asked on August 10, 2024 Show version history

I want to make the highlighted field clickable and lead to the relevant job in Laserfiche Web. I can generate the URL and make it clickable, but I cant figure out how to maintain the link as a number as shown.

Can this be done?

0 0

Replies

replied on August 12, 2024

You need Custom HTML field, construct a hyperlink and pass the token value to it.

1 0
replied on August 12, 2024 Show version history

As far as I know, you cant put a custom HTML field into a table. Am I wrong?

0 0
replied on August 12, 2024

That is incorrect. You can absolutely put a custom HTML field into a table. Getting it to work in your scenario is a whole different story that would require Javascript outside of my knowledge.

0 0
replied on August 12, 2024

It is not possible to place a clickable link in an input field due to the fact that the input field cannot have an end tag, thus cannot have HTML in it (source: https://html.spec.whatwg.org/#the-input-element).

To solve this without using the input field as the actual link, you'd likely want to hide the input field and, as Zhiyong mentioned, use custom HTML instead. I don't know Javascript well enough to tell you the exact code needed for this, but the general idea is that it would loop through each row of your table and get the value of the field containing the link, then change the custom HTML field of that same row to contain the link HTML.

Another (easier) option would depend on whether the link HTML could be generated (either by using a workflow or by using a field formula in a previous form) before this form is filled out or not. If the link does not exist until this form is being filled out, Javascript is the only possibility.

1 0
replied on August 12, 2024

The link is made by workflow and passed to the form. I can make the field clickable with the full link in it using some java I found. What I cant figure out is getting the text inside the field to be that number. It just shows the full URL.

0 0
replied on August 12, 2024

Hi Richard. 
Would you be able to share your JavaScript? I am imagining that it would be using some HTML to create the clickable link. If so, could you use something like this...

<a href="url">link text</a>

Where "link text" would be your Job Number variable from the workflow.

Jono

0 0
replied on August 13, 2024

The Code is laid out in this thread:

make text box a hyperlink - Laserfiche Answers

0 0
replied on August 12, 2024

Another bit of info that may help. The URL i always the same. The only thing that changes is that number in the link. That number is the entry name.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.