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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / validate item's creato...
Power Apps
Answered

validate item's creator is not the same name on person or group column

(0) ShareShare
ReportReport
Posted on by 16

Im trying to validate before submitform, this is using a button , onSelect I'm trying to use :

 

If(IsMatch(User().FullName, DataCardValue3.Selected.DisplayName),Notify("Sorry, you cannot be the submiter. Please select another name"),SubmitForm(SharePointForm1))

 

but the formula shows an error on SubmitForm(SharePointForm1):

yalanis_0-1668550808545.png

Do you know why?

 

Is there another way to validate that user().Fullname is not equal to DataCardValue3.Selected.DisplayName  ???

 

Thank you

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    I don't think you want IsMatch() here.  You just need to check if the FullName and the DisplayName are equal.  Regex is not involved.  You should also store the User().FullName in a variable and use the variable.

  • yalanis Profile Picture
    16 on at

    Could you please be more specific or provide an example?

  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    I would recommend using the Email property instead of the Display name, since Display name can vary from Fullname. But this will work.

     

    Set(CurrentUser, User().Email);
    If(CurrentUser = DataCardValue3.Selected.Email,Notify("Sorry, you cannot be the submiter. Please select another name"),SubmitForm(SharePointForm1));

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard