Hi @mateuszwrona ,
Two issues - one not relating to your question, but the Data Card Update should be
{
Claims: "i:0#.f|membership|" & Lower(DataCardValue31.Selected.Mail),
DisplayName: DataCardValue31.Selected.DisplayName,
Email: DataCardValue31.Selected.Mail
}
As to the required, if you set the Data Card to Required, then your Submit code should be
If(
YourFormName.Valid,
Submit(YourFormName)
)
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.
MVP (Business Applications) Visit my blog Practical Power Apps