web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Mise à jour liste shar...
Power Apps
Answered

Mise à jour liste sharepoint

(0) ShareShare
ReportReport
Posted on by 109

Bonjour je cherche une solution à mon problème, sans succès

Dans un formulaire en mode édition, je cherche à remplacer des valeurs avec des valeurs trouvées dans une piclist (voir photo)

Capture.PNGUne fois les valeurs corrigées, je suppose que le 'submitForm()' ne posera pas de problème...
J'aimerais que les nouvelle valeurs viennent de la piclist pour des raisons de cohérence et de format des données

Merci pour votre aide

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Kervin 
    I do not speak French but I think I understand your post.  You want the value within a "picklist" (also known as a Dropdown in PowerApps) to appear in the Text box beside it.


    To do it, put this code in the OnSelect property of the dropdown

    Set(resetSite, true); Set(resetSite, false);

     

    Then change the Reset property of the Text Input to this code.

    resetSite

     

    Finally, put this code in the Default property of the Text Input.

    Dropdown1.Selected.Value

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

     

  • Kervin Profile Picture
    109 on at

    it does not work ...
    I guess the idea is: depending on the value of 'resetsite' the default value of 'Site' takes its value when the form is edited and then becomes the selected value

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Kervin 
    Is there any error showing? Also, 'Dropdown1.Selected.Value' is just an example.  You have to replace this code with your own names.

     

    I was able to test on my side in a sample app and the general technique worked.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Kervin Profile Picture
    109 on at

    I have only : Dropdown1.Selected.RESULT ...

    I tried this :

    on site default 

    if(

      resetsite = false;

        Dropdown1.Selected.RESULT;
        site

    )

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Kervin 
    Not sure why you added an IF statement to my code.

  • Verified answer
    Kervin Profile Picture
    109 on at

    Hello mdevaney,

     

    The IF was just for a test, its now ok, thank for the trick 😀👍

    A problem remains, during the update (submitForm) all the new values are saved in the list ... except one, the 'Local' field is NEVER adapted, however I use the same procedure and I do not receive any error ... strange

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard