back to top

How to Format a URL as a Clickable Link in a Text Field in Creatio

If you have a text field that contains a URL, by default in Creatio it will just show as text. Meaning, it will not be a clickable link. You can change this so it works like a text field that also has a clickable link like the out of the box web address field in Creatio. To accomplish this, you’ll need to do the following:

  1. Add a normal text field to contain the URL value and add to a page
  2. Modify the text field in the diff to add some attributes
  3. Add two methods to the page code, one to format the URL and one to respond to when it is clicked

We’ll assume you’ve already added the text field to the page, for this article, we’ll assume the column name is UsrUrlFieldName. Now, you’ll need to locate that text field in the page diff and add the following to the element’s “values”:

"showValueAsLink": true,
"href": {
    "bindTo": "UsrUrlFieldName",
    "bindConfig": {"converter": "getLinkFormat"}
},
"controlConfig": {
    "className": "Terrasoft.TextEdit",
    "linkclick": { bindTo: "onLinkClick"}
}

In the code above, notice the href is bound to the UsrUrlFieldName column and the function names in the href.bindConfig.converter and the controlConfig.linkclick. Those are methods we’ll be adding below. For the getLinkFormat, we’ll return an object with a “url” and a “caption”. We could have a different display value than the actual URL if we wanted, but we’ll pass back the text field’s value for both (so it will look like the url value). For the onLinkClick method to open the url in a new browser tab, we’ll use the code from my previous article Open a Link in a New Browser Tab Without Being Blocked

getLinkFormat: function(value) {
	return {
		"url": value,
		"caption": value
	};
},

onLinkClick: function(url) {
	var link = document.createElement("a");
	link.href = url;
	link.target = "_blank";
	document.body.appendChild(link);
	link.click();
	document.body.removeChild(link);
	return false;
}

With the above in place, the field will look like a text field, the user can click into it and type in a URL, however, when the value changes it will look like a clickable hyperlink. When the user clicks it, our code will open the URL value in a new browser tab.

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Ryan Farley
Ryan Farleyhttps://customerfx.com/article/author/ryanfarley/
Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

1 COMMENT

  1. Hello! Thank you for this article, it is very powerful! Could you please tell me how to implement the same in a mobile application?

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Building AI-Powered Workflows in Creatio Without Writing Code

See how Creatio can combine AI with no-code business processes to qualify, summarize, and route incoming leads while keeping your existing business rules and human oversight in place.

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Related Articles

Building AI-Powered Workflows in Creatio Without Writing Code

See how Creatio can combine AI with no-code business processes to qualify, summarize, and route incoming leads while keeping your existing business rules and human oversight in place.

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Related Videos