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

Labels and control based on datacardvalue not updating

Hi there,

 

In my app people fill in a survey. The survey has multiple screens. It is necessary that the people fill in all required fields. Every screen has an editform linked to a SP online list. When all fields in the Editform are filled in a label shows the text "Completed". When one of more fields are empty, the label shows the text "Uncompleted". This is done by a formula. The formula works brilliantly. 

 

Capture.JPG

 

My issue is this. For example, when all fields except DataCArdValue41 is filled in the label sais "Uncompleted" as expected. When the DataCardValue has been filled in, the label does not always update automatically. Not always means that on screen 1 this goes as expected, Screen 2 not.  When I change the formula in Screen 2, for example change Complete to Very Complete, the label shows the expected value immediate. 

 

I think this is non logical behaviour. Does anyone have an idea how this is possible or what reasons there may be for this to happen?

1 ACCEPTED SOLUTION

Accepted Solutions
Mengeltje
Level: Powered On

Re: Labels and control based on datacardvalue not updating

Hi @v-xida-msft ,

 

Thank you for your answer. Absolutely a good idea.

Only thing is that every screen (editform) has often a dropdown box. And depending on the choice that's made in the box, other fields must be filled in and others not. It is possible with the Valid function. but then its necessary that all required fields have the same 'if then' statements.

 

I don't know if its  a temporary fix, but I replaced the label. First it was outside the form, now it is one of the datacards.

Ik works again.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Labels and control based on datacardvalue not updating

Hi @Mengeltje ,

Could you please share a bit more about the issue within your app?

 

Based on the formula you provided, I think there may have something issue with it. Please consider modify your formula as below:

If(
   DataCardValue114.Selected.Value = "Aluminium" && !IsBlank(DataCardValue33.Selected.Value) && !IsBlank(DataCardValue34.Text) && !IsBlank(DataCardValue35.Text) && !IsBlank(DataCardValue39.Text) && !IsBlank(DataCardValue40.Text) && !IsBlank(DataCardValue41.Text) && !IsBlank(DataCardValue42.Text),
   "Complete",
   "Uncomplete"
)

 

In addition, as an easy solution, I think the Valid property of the Edit form could achieve your needs. On your side, you could consider Unlock the Required/Mandatory fields data cards within your multiple Edit forms, then set the Required property of the these Data cards to true.

After that, modify your formula as below:

If(
   DataCardValue114.Selected.Value = "Aluminium" && EditForm1.Valid && EditForm2.Valid && EditForm3.Valid && ...,
   "Complete",
   "Uncomplete"
)

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

 

Also please check the response within the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Creating-Apps/Referring-to-multiple-data-cards/m-p/331100#M12300

 

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.
Mengeltje
Level: Powered On

Re: Labels and control based on datacardvalue not updating

Hi @v-xida-msft ,

 

Thank you for your answer. Absolutely a good idea.

Only thing is that every screen (editform) has often a dropdown box. And depending on the choice that's made in the box, other fields must be filled in and others not. It is possible with the Valid function. but then its necessary that all required fields have the same 'if then' statements.

 

I don't know if its  a temporary fix, but I replaced the label. First it was outside the form, now it is one of the datacards.

Ik works again.

View solution in original post

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 (Last 30 Days)
Users online (4,753)