> For the complete documentation index, see [llms.txt](https://university.gonexa.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.gonexa.fr/doc/advanced-features/tag-extensions/clickable-url-in-text.md).

# Insérer une URL cliquable dans un texte

Transformez un texte en lien cliquable dans Word

{% hint style="danger" %}
**Attention**

L'utilisation de ces extensions nécessite d'être sur une version du package ultérieure à la version 2.3.\
Veuillez mettre à jour le package via l'AppExchange ou votre compte App, le cas échéant.
{% endhint %}

Dans Word, il est possible d'associer un lien hypertexte à un texte spécifique en utilisant une extension de balise.

**Comment ça fonctionne ?**

La syntaxe `{!label|champ(link,Texte_affiché,Message_erreur)}` transforme une URL stockée dans un champ en **lien hypertexte cliquable** dans le document Word.

**3 paramètres :**

* `link` : mot-clé fixe, toujours identique
* `Texte_affiché` : ce que voit l'utilisateur (ex: "Cliquez ici")
* `Message_erreur` : texte affiché si l'URL est invalide ou vide

1. Construisez votre balise via l'assistant et enrichissez son extension selon la méthode ci-dessus
2. Insérez-là dans votre document Word à l'endroit souhaité
3. Enregistrez, chargez et testez comme d'habitude

{% hint style="success" %}
**Pour exemple**

Pour insérer un lien cliquable lié à un champ texte contenant une URL et affichant le texte **"Cliquez ici"** avec un message d'erreur **"Une erreur est survenue"**, la balise complète sera :

```
{!Account|Champtexte__c(link,Cliquez ici,Une erreur est survenue)}
```

{% endhint %}

{% hint style="danger" %}
**Attention**

Assurez-vous que l'URL du champ est valide pour éviter l'affichage du message d'erreur
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://university.gonexa.fr/doc/advanced-features/tag-extensions/clickable-url-in-text.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
