activities
latest
false
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.
UiPath logo, featuring letters U and I in white

Workflow-Aktivitäten

Letzte Aktualisierung 2. März 2026

Öffnen von Hyperlinks innerhalb des Formulars

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.

Tipp:

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.

Tutorial

So öffnen Sie einen Hyperlink mit einer Schaltfläche:

  1. Add a Create Form activity into your workflow. Design the form according to your use case.
    1. Ziehen Sie eine Schaltflächenkomponente vom Typ Klicken und legen Sie sie ab, mit der Sie den Hyperlink öffnen werden. Nennen Sie ihn in diesem Beispiel Visit our website and leave us feedback. Kopieren Sie den generierten Feldschlüssel dieser Schaltflächenkomponente oder erstellen Sie einen eindeutigen Feldschlüssel dafür. In diesem Beispiel ist der Feldschlüssel visitOurWebsiteAndLeaveUsFeedback.
    2. Drücken Sie in der Ausgabeeigenschaft Ausgewählte Schaltfläche CTRL + k auf der Tastatur und erstellen Sie eine String -Variable mit dem Namen selectedButton. Diese Variable wird verwendet, um eine Bedingung zu erstellen, unter der der Hyperlink nur geöffnet wird, wenn eine bestimmte Schaltfläche ausgewählt wird.
  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. Übergeben Sie im Eigenschaftsfeld Bedingung den folgenden Ausdruck: selectedButton = "theFieldKeyOfTheDesiredButtonComponent". Übergeben Sie in diesem Beispiel selectedButton = "visitOurWebsiteAndLeaveUsFeedback".
  3. Add a Use Application/Browser activity inside the Then block of the If activity.
    1. Es ist bereits ein Browserfenster geöffnet. Öffnen Sie in diesem Beispiel ein Google Chrome-Fenster.
    2. Klicken Sie auf Anwendung für Automatisierung anzeigen (I) und geben Sie den Browser an, den Sie zum Öffnen des Hyperlinks verwenden möchten, indem Sie darauf klicken. Geben Sie in diesem Beispiel das Fenster Google Chrome an.
    3. Wechseln Sie zur Eigenschaft Close und wählen Sie Never aus der Dropdownliste aus. Dadurch wird das Fenster nach der Ausführung der darin enthaltenen Aktivitäten nicht geschlossen.
  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. Speichern Sie den Workflow, und führen Sie ihn aus.

Ergebnis

Wenn Sie auf die Schaltfläche Visit our website and leave us feedback klicken, wird ein neues Google Chrome-Fenster geöffnet, in dem Sie zur https://google.com/ -URL aufgefordert werden.

Beispielworkflow

Laden Sie das XAML-Beispielherunter, um den vollständigen Workflow zu überprüfen oder später darauf zurückgreifen zu können

  • Tutorial
  • Beispielworkflow

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
Uipath Logo
Vertrauen und Sicherheit
© 2005–2026 UiPath. Alle Rechte vorbehalten