Title: How to Return Hyperlink
Last modified: September 11, 2019

---

# How to Return Hyperlink

 *  Resolved [nateyarbrough](https://wordpress.org/support/users/nateyarbrough/)
 * (@nateyarbrough)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/how-to-return-hyperlink/)
 * I’m attempting to display a hyperlink as a result of a calculated field. Here’s
   the general direction I was trying to go with it but am stuck. Any advice?
 * (function(){
 * if(fieldname3 > 100) return {DISPLAY HYPERLINK HERE};
 * })();

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/how-to-return-hyperlink/#post-11921931)
 * Hello [@nateyarbrough](https://wordpress.org/support/users/nateyarbrough/)
 * The calculated fields use input tags, and the input tags cannot rendering HTML
   tags, so, the alternative would be determine the link with the calculated field,
   but display it into another field.
 * – Insert a “HTML Content” field jn the form, with a content similar to the following
   one:
 * `<div class="result-here"></div>`
 * – Edit the equation as follows:
 *     ```
       (function(){
       var link = '';
       if(fieldname3 > 100) link = '<a href="http://yourwebsite.com">Click Here</a>';
       jQuery('.result-here').html(link);
       })()
       ```
   
 * – Finally, as the calculated field is being used as auxiliary, you can tick the
   checkbox in its settings for hiding the field from the public form.
 * Best regards.
 *  Thread Starter [nateyarbrough](https://wordpress.org/support/users/nateyarbrough/)
 * (@nateyarbrough)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/how-to-return-hyperlink/#post-11921979)
 * Wow, what a fast reply. That worked great! Thank you so much for your help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to Return Hyperlink’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nateyarbrough](https://wordpress.org/support/users/nateyarbrough/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/how-to-return-hyperlink/#post-11921979)
 * Status: resolved