Create a hyperlink based on field value in CCv6

create hyperlinks from field values in ChronoForms v6.

Overview

The issue was displaying a list of files where the filename field lacked the full URL path needed for a clickable link.
In the view's Content box, use the field variable for the link text, and in the URL box, combine the base URL with the same variable to construct the complete hyperlink address.

Answered
Connectivity v6
mo momentis 10 Apr, 2018
I am displaying a list of files in CCv6. One of the fields in the table contains the filename. I would like the list to create a hyperlink for each file, but I cannot figure out how to do this. I have walked through the tutorial in the FAQ's, but I am still a bit confused.

I have a view named "main_listing" that pulls the data from the table, with a model of "mess". The filename field is named "mess_filename". It does not contain the complete URL to the file (http://www.mysite/images/messenger), just the name. I would need to append the URL to "mess_filename" when the connection is viewed. I set up a view called "file_link", and used {var:main_listing.row.mess.filename} in the Content box.

I am confused as to the next step(s).

Thanks!!
Rick
mo momentis 12 Apr, 2018
Answer
I got it working. In case it helps anyone else, here's what I used in the Content and URL and/or URL parameters boxes:

Content: {var:main_listing.row.mess.mess_filename}
URL and/or URL parameters: http://www.mysite.com/images/messenger/{var:main_listing.row.mess.mess_filename}

In the end, this makes sense. I just couldn't get it right away!

Rick
This topic is locked and no more replies can be posted.