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 25 févr. 2026

Exécuter le bloc Do lors du changement d'option de la liste déroulante

You can configure activities inside the Do block to execute when the dropdown option changes.

Tutoriel

Pour utiliser cette fonctionnalité :

  1. Add the Create Form activity to your workflow.

  2. Inside the Do block, configure the desired activities.

  3. Open the Form Designer from the Create Form activity.

  4. Drag and drop a Drop-down List component.

  5. In the Data tab > Data Source Values section, add your dropdown options.

  6. Scroll down to the Custom Default Value section and expand it.

  7. In the JavaScript subsection, enter the following JavaScript code:

    const updateOnChange = instance.updateOnChange;
    instance.updateOnChange = function(flags, changed) {
        if (flags.modified) {
            instance.emit('dropdownChanged', 'drop');
        }
        return updateOnChange.call(instance, flag, changed);
    }
    const updateOnChange = instance.updateOnChange;
    instance.updateOnChange = function(flags, changed) {
        if (flags.modified) {
            instance.emit('dropdownChanged', 'drop');
        }
        return updateOnChange.call(instance, flag, changed);
    }
    

    L'extrait de code ci-dessus déclenche l'exécution des activités du bloc Faire lorsque l'option de liste déroulante change.

  8. Enregistrez le formulaire.

  9. At runtime, when you change the dropdown option, notice the activities in the Do block being executed.

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.