cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rsparks
Helper V
Helper V

Creating an "Order Summary" popup before submission

Within my form the user can select from 3 dropdowns (laptop, desktop, accessories) which will then display a different set of items. Next to each item is a QTY text input. There are 10 of these items (and subsequently QTY text inputs) in total. 

 

When the user clicks submit, I want a popup to display an order summary. For example 3x HP laptops totalling $4000, 3x HP computer mouse totalling $80. Just as if it was a shopping cart on a website.

 

I want it so that only items with a quantity selected of 1 or more are shown on the order summary, rather than having to see a number of items with a quantity of 0 clogging it up. 

 

One way I was thinking of doing it was with utilizing visibility, but I don't know how I could re-position each label on the order summary screen to fit properly. 

 

Currently the popup looks like this: 

 

rsparks_0-1601343514582.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

Hi @rsparks ,

I think you can use Labels to display summary for each item and use IsBlank(QTY.Text) to control the visible of items.
However, Visibility property is not a good choice, since the layout of each label will be fixed. I would prefer to control the Height property of Label, then layout is much more flexible.  For example:
GIF_96.gif
Here is the steps.
Label1. Text:  If(!IsBlank(QTY1.Text), " 3x HP laptops totalling $4000")
Label1. Height: If(!IsBlank(QTY1.Text),42,0)
Label2. Text:  If(!IsBlank(QTY2.Text), " 3x HP computer mouse totalling $80")
Label2. Height: If(!IsBlank(QTY2.Text),42,0)
Label2. Y: Label1.Y +Label1.Height
Label3. Text: If(!IsBlank(QTY3.Text), "...")
Label3. Height: If(!IsBlank(QTY3.Text),42,0)
Label3. Y: Label2.Y +Label2.Height
Hope this helps.
Sik

View solution in original post

1 REPLY 1
v-siky-msft
Community Support
Community Support

Hi @rsparks ,

I think you can use Labels to display summary for each item and use IsBlank(QTY.Text) to control the visible of items.
However, Visibility property is not a good choice, since the layout of each label will be fixed. I would prefer to control the Height property of Label, then layout is much more flexible.  For example:
GIF_96.gif
Here is the steps.
Label1. Text:  If(!IsBlank(QTY1.Text), " 3x HP laptops totalling $4000")
Label1. Height: If(!IsBlank(QTY1.Text),42,0)
Label2. Text:  If(!IsBlank(QTY2.Text), " 3x HP computer mouse totalling $80")
Label2. Height: If(!IsBlank(QTY2.Text),42,0)
Label2. Y: Label1.Y +Label1.Height
Label3. Text: If(!IsBlank(QTY3.Text), "...")
Label3. Height: If(!IsBlank(QTY3.Text),42,0)
Label3. Y: Label2.Y +Label2.Height
Hope this helps.
Sik

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (50,182)