cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bubs
Level: Powered On

Create a pop up entry box for a selected item in a drop down and have it write to SharePoint

Hello,

 

I am curently trying to have a pop up box appear if a user selects the option "expectation not met" in as a option in a dropdown.

 

I want the pop-up to make the user enter text explaining why they selected this answer and have that comment write back to sharepoint

 

This is possible? if not what are other options to have the admin view the responses? the app has multiple drop downs and the pop-up entery box could appear multiple times while using the app

 

Please let me know if you have any additional questions. Thanks

5 REPLIES 5
jhall
Level 8

Re: Create a pop up entry box for a selected item in a drop down and have it write to SharePoint

You have to manually construct "popups" and modal dialog boxes in PowerApps.

 

I've got a complete walkthrough at:  https://persnicketypowerapps.blogspot.com/2018/03/modal-dialog-or-popup-boxes.html

Community Support Team
Community Support Team

Re: Create a pop up entry box for a selected item in a drop down and have it write to SharePoint

Hi @bubs ,

Could you please share a bit more about your scenario?

Do you want to display a Pop-up box to enter entry into your SP List when you select the "expectation not met" option within the Dropdown box?

 

I agree with @jhall 's thought almost. You could consider configure a Pop-up box based on the blog  @jhall provided firstly.

 

I have made a test on my side, please take a try with the following workaround:13.JPG

 

14.JPG

 

15.JPG

 

16.JPG

Set the OnChange property of the Dropdown box (Dropdown1) to following:

If(Dropdown1.Selected.Value = "expectation not met", Set(ShowPopUp, true))

Set the Visible property of the Group component/control to following:

If(ShowPopUp, true, false)

Within the Group component, set the OnSelect property of the "Cancel" button to following:

Set(ShowPopUp, false)

set the OnSelect property of the "Submit" button to following:

Patch(
'YourSPList',
Defaults('YourSPList'),
{
ReasonColumn: ReasonTextBox.Text,
CommentColumn: CommentTextBox.Text
}
);
Set(ShowPopUp, false)

Please check the following GIF screenshot for more details:Test.gif

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bubs
Level: Powered On

Re: Create a pop up entry box for a selected item in a drop down and have it write to SharePoint

@v-xida-msft ,

 

I followed your instructions and was able to get the pop-up box to appear, but it is not writing to SP and my browse screen as i want it to. The entry in the pop-up creates its own entry in SP and when I go to the browse scree it just shows the comment. 

 

How can i make it so that it will show all on one entry? I will need to have this option for mulitiple questions. How could i make it so that each entry has a seperate discicnt spot for comments? would i have to make a comment column for every question in SP?

 

Let me know if you have any additional questions. Thanks

Highlighted
bubs
Level: Powered On

Re: Create a pop up entry box for a selected item in a drop down and have it write to SharePoint

@v-xida-msft @jhall 

 

I have the button working but It is not writting to In SP to where i want it. I want the entire entry to be on one line with the pop-up entry to be in pop-up entry one. I tried  chaning title but it was giving me errors 

jhall
Level 8

Re: Create a pop up entry box for a selected item in a drop down and have it write to SharePoint

Likely the issue is your Patch() function (see documentation here).  

The Defaults() function is included to create a new record.  

You should instead be doing a query to limit what record gets updated.  For example:

Patch( Customers, First( Filter( Customers, Name = "Contoso" ) ), { Phone: “1-212-555-1234” } )

The bolded text is used in place of the Defaults() function to tell the system to patch this specific record.

In your case it would be similar to:

Patch( 'Pop-Up', First( Filter( 'Pop-Up', Title = yourTitleFieldName.Text ) ), { 'Pop up entry 1': popUpFieldName.Text } )

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 298 members 6,316 guests
Please welcome our newest community members: