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

Discussion

Discussion

Forms Cloud - Links all go to javascript:void(0)

posted on September 28, 2020

I am trying to add links in my form and they are being set to javascript:void(0) instead of the link I enter.

Hidden within the code, you can see hidden instructions which say to hold CTRL + Click the link. If I do this the link works, but no one would ever know to do this because they are not looking at the code.

I don't have the problem with On-Prem forms.

 

0 0
replied on September 30, 2020

Does this occur in every browser? Looks like you will need some jQuery to convert it to an <a> element. 

0 0
replied on September 30, 2020

This is what it generates for HTML.

<a href="javascript:void(0);" title="http://test
CTRL +Click to follow link" style="cursor:pointer" onclick="if (event.ctrlKey) window.open('http://test', '_blank');">test</a>

It is less of a browser specific thing, and more of a why is all this javascript here and why the dependency on the control key. Anytime someone adds a link to their form it will not work unless the user has the control key pressed.

0 0
replied on October 1, 2020

What designer tool are you using? custonHTML? or other? If that control key and jacaScript is popping from entering a URL into the customHTML field, then.....

Yeah, we need to hear from Laserfiche on that. We can guess why it is there, but now, how do we get rid of it? What is the workaround? 

0 0
replied on October 1, 2020

It is in the Custom HTML. I can't even guess why it would do this. No one is going to know you must hold control while clicking the link for it to work. So the links are all essentially not working.

0 0
replied on October 2, 2020

@████████, can you confirm this is intended behavior? Inquiring minds want to know :)

Thanks!

 

0 0
replied on October 5, 2020

After a little digging, it appears this change was actually meant only for RTF fields. When a form filler is editing the RTF field, their links were too easy to click in the editable input which would navigate away from the in-progress form. I think the change accidentally propagated to custom HTML fields that should just allow single click to access the URL. 

We'll look into this further and see if we can straighten it out. Thanks for bringing this to our attention. 

2 0
replied on August 17, 2021

Is this still an issue? Or is this intended behavior? I seem to be encountering the same problem, but my links won't even open via Ctrl+Click when included in an Email service task. This essentially renders links unusable for those receiving the emails. 

 

0 0
replied on August 17, 2021

This issue was about clicking a link from a custom HTML field on the form in the browser, and it was fixed. Now if the link is in edit mode (like in the custom HTML editor), it requires a control + click. If the link is in read-only mode (like on the form itself), it works with just a single click. 

Matt for your issue, if you go into the HTML side of the body and update the <a href> tag with the correct link, does the email work? 

0 0
replied on August 17, 2021

Thanks for clarifying Jared. Going into the HTML side of the body and manually crafting the links works. However, it looks to me like using the Hyperlink button provided in the Visual side causes issues. When I tried using that button to create a link in the body, the 'Ctrl+Click' HTML code appears to cause a lot of havoc. I tried to simply delete these pieces and replace with simple <a href> tags but when I'd go over to the Visual side it changed what I typed and added a lot of crazy stuff. Almost like it was tying to do things differently. 

 

In order to get this working I manually deleted everything in the body and wrote the <a href> tags myself. After trial and error, I found that if you try using the Hyperlink button and then editing after, it doesn't work correctly. It appears to me like using the button to create links is broken, as the behavior it results in renders the links unusable in the resultant email. 

 

Thank you for the help, would be interested to see if this is deemed a bug and fixed, or if it's intended behavior for the button.

0 0
replied on August 17, 2021

We'll investigate to see if we can track down what's going on. 

0 0
replied on February 10, 2022 Show version history

Users never get this, no one has held down the Ctrl key to click a hyperlink on any other web page. It is way over complicated and too fancy for it's own good. They just come back saying the link doesn't appear to work. Please remove this from Cloud.

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

Sign in to reply to this post.