Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Powerapps Button conditioned to submitform or resetform

Posted on by

Hi! here is a code i'm trying to make work. basically if the OR% is 100% and No loss Reported was selected with the dropdown box, clicking the button would either submit or reset the form. 

 

P.S. I also have a display form that gives the OR value but i gave up in using it to be the basis for the button but if you have any ideas on how to capture it and use it in buttons that would be great too. 

 

If(And(Gallery5.Selected.'OR (%)'=1,DataCardValue47.Text="No Loss Reported"),SubmitForm(Form2),ResetForm(Form2))

 

Thank you!

Categories:
  • Re: Powerapps Button conditioned to submitform or resetform

    I've changed it a bit and there are no errors. However, it keeps submitting even though the cleared is selected but without having the 100.

     

    P.S. I changed a few things like "Cleared" from "No loss reported" and deleted "None" instead left it blank.

     

    Here it is.

     

     

    If(And(DataCardValue11.Text="100",DataCardValue47.SearchText="Cleared"), SubmitForm(Form2),If(And(DataCardValue11.Text<>"100",DataCardValue47.SearchText="Cleared"),ResetForm(Form2),If(IsBlank(DataCardValue47),ResetForm(Form2),SubmitForm(Form2))))

  • alaabitar Profile Picture
    alaabitar 1,509 on at
    Re: Powerapps Button conditioned to submitform or resetform

    Hey @Anonymous 

     

    If think by putting

    If(And(DataSourceName.'OR (%)'=1,DataCardValue47.Selected.Value="No Loss Reported"),SubmitForm(Form2),ResetForm(Form2))

    This should work.

    Make sure to replace "DataSourceName" with the actual name of your data source

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

October 2024 Newsletter…

October 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #4 How to Conntact Support…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 142,651

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,727

Leaderboard