cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Grey Out Button Based On Data Card Value of a Display Form

Hello Community,

 

I hope this message finds you well. There is a Screen that I have a form that shows the full information of the animals of choice selected by the user as well as a button that proceeds the user to a confirm page to let them finalize their fostering or adopting. To ensure that the user cannot foster or adopt an already adopted animal, I would like to grey out the button on that page so that users can only click it if the Status of the animal on the display form is either Ready for Foster, Ready for Adoption. 

 

I have tried referencing the DataCard in my IF statement under the button's Display Mode property but no success. Can someone please help me URGENTLY!!! I have attached an image of my screen and how my formula looks. One of my formulas is a comment as well as the main one. If anyone can clarify why both don't work I will be so grateful.

 

Thank you so much!!!

20 REPLIES 20

Good morning. Below is how mine looks which I know is wrong so I am asking how did you get to set up yours that way.

So I was playing around with it and I see that you made your animal type column in your table to have the Data type of "Choices". That is why it does it like that. If I am correct, is that what you did?

I think I figured it out now. I was able to make a new column and make the animal type to be choice data type and then when I went to my filter I added them and now it looks like yours. Thank you for sharing the picture because that made me think a bit and then I decided to play with a column I made that had a choice type and I filtered by that and discovered it ends up looking like yours, so I was able to do that. Thank you once again. UP NIGERIA!!!

Hi @Oyin - This explanation is really helpful and I have always followed the same. 2 questions.
1. What should the 'pick me' button do based on our requirement ? Should it only update the shelter status to ' Claimed to Adoption' or it should update any foster family information. Can you clarify this bit ? 

2. how to calculate the date of pickup in the power automate mail ? any logic there 

For me I created two separate screen for updating the family information and the animal so it is more organized. And I believe the date pick up can be anyhow you like. They did not specify if we should calculate it. For me, I plan on using a generic date.

Hey, so I thought about it again and saw that the Pick Up Date should be calculated. One method I plan on using is creating a Date of Pick Up in my Animal Data column and then making the data type a Power Fx and then using one of the functions to add 5 days to it so that the pick up date would be 5 days in advance

@Oyin - Thanks. can you share me the screenshot of your homepage ? How do the foster family navigate to the register foster family screen and Pet confirmation page in your app ?

Create a column in your animal data table and then set the Data type to Power Fx and use the formula below so it automatically calculates it:

 

DateAdd('Date of Foster', 5, TimeUnit.Days)
 
But if you want to make it better, you can make it a calculated column. For me I let Power Automate do it for me

@Oyin - Really appreciate your help and response. You are inspiring me to do this challenge in a better way. Kudos to you. 

 

Can you please share me the screenshot of your homepage ? How do the foster family navigate to the register foster family screen and Pet confirmation page in your app ?

@Poovarasan27 

Thanks for your kind words.

 

I used the fx below for my 'Pick me' button.

 

Onselect = Set(varSelectedItem,
    ThisItem
);
 Navigate(Screen1); NewForm('Form1')

 

 

selected.png

 

Helpful resources

Announcements

Important Update | Power Up Community READ ONLY July 22 – July 28

Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub.  If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead! 

Learn what to expect in the Power Up Program

Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course.   Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.  

Welcome to the Power Up Program Community

The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate.  As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards.  Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.