How can I create an auto-link with [entry.FIELD_NAME1]+[entry.FIELD_NAME2]

If I am creating a confiform field definition and selecting the definition type as 'autolink'

Basically I want to create a link with a prefix value and a dynamically added value to a field within the entry.

How do I achieve this concat ability?

 

do not bother too much with the autolink field definition type. If it is any other field definition type that I can use and present the resultant as a link on the entry. That should be fine.

 

To understand with an example:

Let us say, an entry in the form is: Facebook username: usernameXYZ

then it should create a link:

www.facebook.com/usernameXYZ

at least create the above link as the field value. If possible have a label for it: Facebook Profile(hyperlink or anchor tag).

 

 

Regards,

Rohit

1 answer

1 accepted

This widget could not be displayed.

Hi @Rohit Agarwal

 

Very sorry for not addressing your question abot ConfiForms on Atlassian Answers earlier. It simply got unnoticed...

It is always better to ask us directly using the contact form on http://wiki.vertuna.com/display/VERTUNA/Vertuna+LLC+Home

What you are trying to do is absolutely possible with ConfiForms and there a lot of way how to do that: we can use a calculated or formula filed to get this set or we can use Field Definition rules or we can use ConfiForms IFTTT macro to get the record updated "on save"

 

Please send your question and example storage format for form configuration directly to us, vertuna(at)vertuna.com and we help you

 

Best Regards

Sash 

 

I figured a way to do it. Through the [entry.FIELD_NAME] URL pattern. works like a charm!

No worries on late responses!

Hello,

Please give me an example of the URL pattern.

 

Thanks in advance.

Add ConfiForms Field Definition of autolink to you form and configure the pattern parameter the way you want, mixing together static data with references to fields through [entry.field_name] notations to form a valid URL

   <ac:parameter ac:name="fieldName">sdgindicator</ac:parameter>
        <ac:parameter ac:name="fieldLabel">SDG Indicator</ac:parameter>
        <ac:parameter ac:name="extras">true</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <br/>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="0b4bb35e-d088-4168-b07a-7c7e12d4f52c" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">websitelink</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Website Link</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="79c69b60-a9da-4c24-b26c-518fb27966d6" ac:name="confiform-field-definition" ac:schema-version="1">
      <ac:parameter ac:name="fieldName">sdglink</ac:parameter>
      <ac:parameter ac:name="fieldLabel">SDG Link</ac:parameter>
      <ac:parameter ac:name="values">[entry.websitelink]|[entry.sdgindicator]</ac:parameter>
      <ac:parameter ac:name="extras">true</ac:parameter>
      <ac:parameter ac:name="type">autolink</ac:parameter>
    </ac:structured-macro>

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

460 views 6 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you