web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Not submit a form if a...
Power Apps
Answered

Not submit a form if a validation is empty

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

 

I've a question, a I've a form that sends a email if all the records are complete (required), but the problem is if a record is empty the submit still works and send the email and update the data.

This is my formula.

 

If(
DataCardValue66.SelectedText.Value = "EN GESTIÓN";
SubmitForm(Form3);;
Navigate(
RetenciónInside;
ScreenTransition.None
);
If(
DataCardValue66.SelectedText.Value = "REPROGRAMADO";
SubmitForm(Form3);;
Navigate(
RetenciónInside;
ScreenTransition.None
);
If( DataCardValue66.SelectedText.Value = "NO CONTENIDO";
SubmitForm(Form3);;
Navigate(
RetenciónInside;
ScreenTransition.None
);

Office365Outlook.SendEmailV2(
"Sergio.Rivadeneyra@prosegur.com; juan.rincon@prosegur.com; carmen.becerra@prosegur.com; alan.espinoza@prosegur.com; diego.fajardo@prosegur.com; "&DataCardValue70;
"Contención comercial: " & "Contrato: " &DataCardValue21 & " Actividad: "&DataCardValue71;
"Se realiza la contención del contrato. " & DataCardValue21 & " Se adjunta conformidad del cliente.";
{
Attachments: AddColumns(
RenameColumns(
DataCardValue69.Attachments;
"Value";
"ContentBytes"
);
"@odatabyte";
""
)
}
)
)
);
ClearCollect(CollectAdjunto;DataCardValue69.Attachments);
SubmitForm(Form3);;
Navigate(
RetenciónInside;
ScreenTransition.None
)
)

I would like to know, how i can do to not submit and send the information if a record is empty as a required.

 

I'll waitinf for your comments.

 

Best Regards.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Anonymous , the formula contains "NO CONTENIDO"...

    In this place you want to reset form (not submit) and send the notification?

     

    Or you are trying to write above all this another If IsBlank( (SOMETHING) )  then only SendEmail ?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous and thank you for your soon reply.

     

    My mistake for not gave all the details, sorry. The email send if it's "CONTENIDO", in this part my editform has a required item thatr is attachments, if this required item its not complete the sudmit and send information should not work, but stills works, even the property "required" its true.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It's complicated for me to understand.
    If the value of the field contains "CONTENIDO" or "WHATEVER" or "BLA_BLA", and the field require value, the logic will pass everything, because the field is not empty.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, thank you for your soon reply,

    I'll send you some pics for a better vision.

     

    Sin título.png

  • Verified answer
    WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @Anonymous ,

    Note that I have not validated he email part - just used your existing code - also not completely sure on your logic, but the below will submit the form and send the email if the status is one of the three values, otherwise do a collection and submit the form.

    With(
     {
     vSelect:DataCardValue66.SelectedText.Value
     },
     If(
     vSelect ="EN GESTIÓN" || vSelect= "REPROGRAMADO" || vSelect = "NO CONTENIDO"
     Office365Outlook.SendEmailV2(
     "Sergio.Rivadeneyra@prosegur.com; 
     juan.rincon@prosegur.com; 
     carmen.becerra@prosegur.com; 
     alan.espinoza@prosegur.com; 
     diego.fajardo@prosegur.com;
     "&DataCardValue70; 
     "Contención comercial: " & "Contrato: " &
     DataCardValue21 & " Actividad: "&DataCardValue71;
     "Se realiza la contención del contrato. " & 
     DataCardValue21 & " Se adjunta conformidad del cliente.";
     {
     Attachments: 
     AddColumns(
     RenameColumns(
     DataCardValue69.Attachments;
     "Value";
     "ContentBytes"
     );
     "@odatabyte";
     ""
     )
     }
     );
     ClearCollect(CollectAdjunto;DataCardValue69.Attachments);;
     )
    );;
    SubmitForm(Form3);;
    Navigate(RetenciónInside;ScreenTransition.None)
  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @Anonymous 

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Mr.@WarrenBelz 
    Thank you for your reply and I'm really sorry for answer you really late, I had some personal problems.

     

    I could resolve my problem thank you for worried about that.

     

    Best Regards.

     

    Diego Fajardo Feijoo.

  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Thanks @Anonymous ,

    If my post helped you solve your issue, please consider Accept as solution This will help others find it more readily. It also closes the item.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard