activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.
UiPath logo, featuring letters U and I in white

Atividades do fluxo de trabalho

Última atualização 23 de fev de 2026

Como abrir hiperlinks dentro de formulários

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.

Dica:

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

Para abrir um hiperlink usando um Botão:

  1. Add a Create Form activity into your workflow. Design the form according to your use case.
    1. Arraste e solte um componente Botão do tipo Click com o qual você usará para abrir o hiperlink. Para este exemplo, nomeie-o Visit our website and leave us feedback. Copie a Chave de campo gerada deste componente do Botão ou crie uma Chave de campo exclusiva para ele. Para este exemplo, a Chave do Campo é visitOurWebsiteAndLeaveUsFeedback.
    2. Na propriedade de saída BotãoSelecionado , pressione CTRL + k em seu teclado e crie uma variável String chamada selectedButton. Essa variável é usada para criar uma condição sob a qual o hiperlink é aberto apenas quando um determinado botão é selecionado.
  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. No campo de propriedade Condição , passe a seguinte expressão: selectedButton = "theFieldKeyOfTheDesiredButtonComponent". Para este exemplo, passe o selectedButton = "visitOurWebsiteAndLeaveUsFeedback".
  3. Add a Use Application/Browser activity inside the Then block of the If activity.
    1. Uma janela do navegador já está aberta. Para este exemplo, abra uma janela do Google Chrome.
    2. Clique em Indicar aplicativo para automatizar (I) e indique o navegador que você deseja usar para abrir o hiperlink, clicando nele. Para este exemplo, indique a janela do Google Chrome.
    3. Acesse a propriedade Close e escolha Never na lista suspensa. Isso faz com que a janela não feche após a execução das atividades dentro dela.
  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. Salve o fluxo de trabalho e execute-o.

Resultado

Quando você clicar no botão Visit our website and leave us feedback , uma nova janela do Google Chrome será aberta, solicitando o URL https://google.com/ .

Fluxo de trabalho amostral

Para verificar o fluxo de trabalho completo ou ter uma referência futura, baixe o exemplo XAML

  • Tutorial
  • Fluxo de trabalho amostral

Esta página foi útil?

Obtenha a ajuda que você precisa
Aprendendo RPA - Cursos de automação
Fórum da comunidade da Uipath
Uipath Logo
Confiança e segurança
© 2005-2026 UiPath. Todos os direitos reservados.