Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

allow users to add more values into power apps portal form?

(0) ShareShare
ReportReport
Posted on by 100

Hello,

i have a drop-down field in the form with few values. now i want to allow users to add more values as necessary. what are the possibilities to achieve this functionality?

Thanks in advanced.

  • Rakki Profile Picture
    Rakki 100 on at
    RE: allow users to add more values into power apps portal form?

    adactyly, what i was looking for this solution. Appreciated for your help.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: allow users to add more values into power apps portal form?

    Hi Rakki,

    You need add js code in the portal to achieve it:

    pastedimage1646198846702v6.png

    js code(Replace the original field name and value with your own):

    $(document).ready(function () {
        MyFieldChanged();
        $('#custom_preference').on("change", MyFieldChanged);
    });
    
    function MyFieldChanged() {
      $("#custom_text").closest("tr").hide();
        var selectedValue = $('#custom_preference').val();
        if (!!selectedValue && selectedValue == 881990007) {
          $("#custom_text").closest("tr").show();
        }
        else {
          $("#custom_text").closest("tr").hide();
        }
    }

    Field Properties:

     pastedimage1646187708880v1.pngpastedimage1646198591403v2.png

    Result:

    pastedimage1646198663995v4.pngpastedimage1646198678705v5.png

  • Rakki Profile Picture
    Rakki 100 on at
    RE: allow users to add more values into power apps portal form?

    Hello Leah,

    Thanks for your reply. Sorry may be my explanation was not clear enough. i know we can add more values in the behind but my question was how we can allow users to add values on fly during the form submission. Now i am looking to allow user as soon as they select value "Other" from preferences drop down field then another Text field will popup just below preferences field and allow them to enter value anything. what are the ways to do this please?

    Thanks

    3007.Capture.JPG

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: allow users to add more values into power apps portal form?

    Hi Rakki,

    1.Find out to which table(entity) the form belongs?

    pastedimage1646026664466v1.png 

    2.Go Settings > Customizations > Customize the system > Entities to find the entity > Fields.

     Open the drop-down field, then you can add values as your needs.

    pastedimage1646027844552v2.png

    pastedimage1646027865465v3.png

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans