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 / Custom form adding in ...
Power Apps
Unanswered

Custom form adding in different info when saved

(0) ShareShare
ReportReport
Posted on by 21

Hi all,

 

I have an issue with a custom SharePoint form adding incorrect info when the form is saved.

I have attached an image to show exactly what I mean.

 

I select a client, then the 'Region' dropdown filters to relevant regions for said client. This works as it should. However when saving the form the 'Region' column shows a value equal to the 'Site Name'. I can only assume that it's something to do with the formula in the dropdown. 

The formula in the 'Region' dropdown is Filter(Customers, Name = 'Client Dropdown'.Selected.Name).

 

Does anyone have any idea why this might be happening?

 

Many thanks!

 

 

SharePoint Form.jpg
Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Lee5150 ,

     

    What's the optionset data for your Dropdown?

    Does it contain all values as per 'Site Map'?

    If yes, then you need to set the Region value as per current 'Site Name'

     

    Hope this helps

  • Lee5150 Profile Picture
    21 on at

     Thanks Ethan,

     

    I'm not sure what you mean by 'optionset data'. Apologies! I'm a Power Apps newbie I'm afraid. 

    The Client dropdown looks at the 'Title' column in a list called 'Customers'. The Region dropdown looks at the 'Region' column in the same customers list.

     

    The customers list has multiple duplicated names in the 'Title' column and the 'Region' column has the region. 

     

            Title                      Region

    Barratt Homes                East

    Barratt Homes               West

     

    So if i choose 'Barratt Homes' in the client dropdown I'd like to see East & West in the region dropdown. This all works perfectly, except when saving. 

     

    Apologies if you knew all of the above, and I'm just misunderstanding the terminology.

     

    Thanks

     

     

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Lee5150 ,

     

    I have created a sample data and dropdown using collection to mimic your scenario:

    Is this you are trying to achieve that you need to show only those Regions that is been filtered?

    Ethan_R_0-1684148779011.png

     

     

    Then check my steps and you can use wherever required:

    Note: Steps 1 & 2 is done to mimic your scenario, you can check from Step 3

     

    Step 1: Created sample data 

    Ethan_R_1-1684148834694.png

     

    Step 2: I assigned values to each Area using dropdown collection and patched it as per your Table.

     

    Step 3: I used the same filter as I did on my Gallery and then used Distinct based on the Region column

    Ethan_R_2-1684149043958.png

     

     

    That's how I got only those Regions for which I filtered my Gallery

     

    Hope this helps

  • Lee5150 Profile Picture
    21 on at

    Thanks Ethan, 

    Yes that is what I need, and I have it working just like that in a custom form on SharePoint. The issue is when I come to save the form, the 'Region' field doesn't populate with chosen region, it somehow populates with and 'Site Name' instead. It's very strange!

  • Lee5150 Profile Picture
    21 on at

    Hi Ethan,

     

    Please see this link to a quick video of my issue.

    https://share.vidyard.com/watch/Yd3WH9TYrn6Jgkp84V8Xek?

     

    Many thanks for you help!

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Lee5150 ,

     

    Yes that's very strange behavior also, that's SP form. 

    Even I'm not sure what's the main cause but I hope you don't have multiple fields named 'Region' as you might be something else

     

    Also, based on your Video, when you selected East Hams record, your Client holds different value compared to the Form on the right.

    Ensure that the column settings has no Default property in SP column settings.

    Hopefully this fixes the issue else you need to check this with MS Support.

  • Lee5150 Profile Picture
    21 on at

    I've fixed it! 

     

    So the update field of the Region Datacard was set to 'DataCardValue_1' which was the Site Name!!! I've no idea why it was set to that I'm so glad it's fixed! Finally!

     

    Thanks for all your help!

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 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard