activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Activités de workflow

Dernière mise à jour 28 févr. 2026

Ouvrir des hyperliens dans un formulaire

This is a step-by-step tutorial that demonstrates how to open hyperlinks inside forms, using a Button component of type Click. The sample workflow consists of a generic form about customer satisfaction, that prompts users to visit a certain website before submitting the form.

Astuce :

Starting from this tutorial, you can also create a table of hyperlinks inside a form, using a Data Grid component. You populate a Data Grid with Button components, and using the SelectedButton output property, you can create conditions under which a certain URL is opened in the browser.

Tutoriel

Pour ouvrir un lien hypertexte à l'aide d'un bouton:

  1. Add a Create Form activity into your workflow. Design the form according to your use case.
    1. Glissez-déposez un composant Bouton de type Cliquer, que vous utiliserez pour ouvrir le lien hypertexte. Pour cet exemple, nommez-le Visit our website and leave us feedback. Copiez la Clé de champ générée de ce composant Bouton ou créez une Clé de champ unique pour celle-ci. Pour cet exemple, la Clé de champ est visitOurWebsiteAndLeaveUsFeedback.
    2. Dans la propriété de sortie BoutonSélectionné , appuyez sur CTRL + k sur votre clavier et créez une variable String nommée selectedButton. Cette variable est utilisée pour créer une condition dans laquelle le lien hypertexte s’ouvre uniquement lorsqu’un certain bouton est sélectionné.
  2. Add an If activity inside the Do block of the Create Form activity. This activity is meant to condition the hyperlink to open only when a specified button is clicked. This prevents the hyperlink to open when clicking the Submit button.
    1. Dans le champ de propriété Condition , transmettez l'expression suivante : selectedButton = "theFieldKeyOfTheDesiredButtonComponent". Pour cet exemple, passez le selectedButton = "visitOurWebsiteAndLeaveUsFeedback".
  3. Add a Use Application/Browser activity inside the Then block of the If activity.
    1. avoir déjà ouvert une fenêtre de navigateur. Pour cet exemple, ouvrez une fenêtre Google Chrome.
    2. Cliquez sur Indiquer l'application à automatiser (I) et indiquez le navigateur que vous souhaitez utiliser pour ouvrir le lien hypertexte, en cliquant dessus. Pour cet exemple, indiquez la fenêtre Basculer Chrome.
    3. Accédez à la propriété Fermer et choisissez Never dans la liste déroulante. Cela empêche la fenêtre de se fermer après l'exécution des activités à l'intérieur.
  4. Add a Go To URL activity inside the Do block of the Use Application/Browser activity.
  5. In the URL property field, input the hyperlink that you want the button to open. For this example, input "https://google.com/".
  6. Drag and drop a Log Message activity into the Sequence workflow. Set the Log level to Info and print out the selectedButton variable in the Message field. For this example, pass the following expression: "This is the button that the user clicked: " + selectedButton.
  7. Enregistrez le workflow et exécutez-le.

Résultat

Lorsque vous cliquez sur le bouton Visit our website and leave us feedback , une nouvelle fenêtre Google Chrome s'ouvre, vous invitant à accéder à l'URL https://google.com/ .

Exemple de workflow

Pour vérifier le workflow complet ou pour avoir une référence future, téléchargez l’ exemple XAML

  • Tutoriel
  • Exemple de workflow

Cette page vous a-t-elle été utile ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Uipath Logo
Confiance et sécurité
© 2005-2026 UiPath Tous droits réservés.