Making a dynamic hyperlink

Create a dynamic hyperlink with a database value in the query string.

Overview

The issue occurred when using a static value instead of a dynamic field from the database in the link.
To resolve this, replace the static number in the href attribute with the field name enclosed in curly brackets, prefixed by the model name.

Answered
ch cham 26 Aug, 2015
I am trying to create a hyper link which displays "Click here" in the A tag but has a value from the data base attached to the query string so it would look like this
<a href="/myscript.php?compid=55">Click here</a>


I am using the text below in the HTML field of the chrono connectivity front end section. Please can you tell me what do I need to alter to get the compid from my query to appear in place of the 55

employeelist.compid:<a href="/myscript.php?compid=55">Click Here</a>


Thank you in advance
ch cham 27 Aug, 2015
Answer
1 Likes
To get the dynamic value for the query string I just needed to preface the field name with the model name in curly brackets
{employeelist.compid}


employeelist.compid:<a href="/myscript.php?compid={employeelist.compid}">Click Here</a>
This topic is locked and no more replies can be posted.