Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms: Trying to display an autolink field in a table but using fieldName.asLink doesn't work?

Evan Hiatt June 7, 2023

I am using Confluence version 8.1.0 

I have a field definition in a confiform that is named "linkToRegistryPage". The field type is autolink. When I use a tableview macro to display all the links, it lists them in the following format: 

http://linkName1\extraStuff

http://linkName2\extraStuff

http://linkName3\extraStuff

This is fine, but I want it to just display:

Link

Link

Link

I attempted to follow this forum's instructions found here: 

https://community.atlassian.com/t5/Confluence-questions/Confiforms-Modification-of-link-text-from-links-field/qaq-p/1500188

So I attempted to use ".asLink(Link)" as follows:

in the confiforms field macro I define the field name as:

"linkToRegistryPage.asLink(Link)"

The output shows this:

http://linkName1\extraStuff">Link

http://linkName2\extraStuff">Link

http://linkName3\extraStuff">Link

This is super weird and I can't get it to work. Any solutions?

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
June 7, 2023

Hi @Evan Hiatt and welcome to this community

Autolink field itself is a HTML link - that is why the asLink function does misbehave in some way.

What you can do is the following (in the field name macro parameter)

linkToRegistryPage.extractText.asLink(View)

Alex

Evan Hiatt June 7, 2023

Wow! That was a speedy response and worked great! Thanks 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events