Hi Team
I need to make my buttons active and drop down, how do i accomplished this in power apps?
e.g i got 3 button, one to save and close, second is submit for approval and 3 resubmit approval. Each must serve its purpose on my form in order to work well, it must be functional. I create a form on power apps with these buttons and want later automate this form using power automate with this flow.
Tuhin PaulPosted Mar 16, 2024, 6:12 PM
In your Power Apps form, you already have three buttons: Save & Close, Submit for Approval, and Resubmit Approval.
Each button's
OnSelectproperty will define its action.Save & Close:
OnSelectproperty to a formula that saves the form data and closes the form. You can use theSubmitFormfunction with theNoConfirmargument to achieve this. For example:Tuhin PaulPosted Mar 16, 2024, 6:12 PM
Submit for Approval:
OnSelectproperty to a formula like:Guest UserPosted Mar 16, 2024, 9:15 AM
Hi Verma
Where are you calling this function, the moment the control e.g button is clicked. I see there is a fx = do i use this logic there or on the advance tab, i see has some conditional logic for one to use. Let me know so can apply this and thanks for clarify this to me.
Simran VermaPosted Mar 15, 2024, 5:15 PM
To activate buttons in Power Apps, you'll typically use a combination of properties and functions to control their behavior based on certain conditions. Below are steps to accomplish this for your scenario:
Insert Buttons: Insert three buttons onto your Power Apps form. You can do this by selecting the "Button" control from the Insert menu in the Power Apps Studio.
Rename Buttons: Rename each button appropriately to reflect its purpose (e.g., "Save and Close", "Submit for Approval", "Resubmit Approval").
Set Button Properties: Select each button and set their properties as follows:
Control Button Visibility and Activation Logic: Based on your requirements, set conditions for when each button should be active or visible. For example, you may want the "Save and Close" button to be active whenever there are changes in the form, but the "Submit for Approval" button to be active only if certain fields are filled out correctly.
If(),And(),Or(), etc., to define your conditions.Add OnSelect Actions: For each button, define what should happen when it is clicked. You can use the
OnSelectproperty to define actions such as saving data, submitting for approval, or resubmitting approval.Test: Once you have set up the buttons, test them in preview mode to ensure they behave as expected based on your defined conditions.
Integrate with Power Automate: Once your form is functional, you can integrate it with Power Automate (Microsoft Power Automate) to automate processes based on button clicks. For example, you can trigger flows to save data to SharePoint, initiate approval processes, or perform any other desired action.
By following these steps, you should be able to create functional buttons in Power Apps that serve their respective purposes on your form and can later be integrated with Power Automate for automation.