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 / What is wrong with thi...
Power Apps
Answered

What is wrong with this argument? If(varFormMode = FormMode.New, Defaults(SystemAdoptionCard2), SharePointIntegration.Selected)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm using this on the Item property for multiple screens form. I get an error message that I'm using invalid argument. The "=" sign is underlined in red. What's wrong with this syntax? Thanks!

 

Categories:
  • eka24 Profile Picture
    20,925 on at

    Please explain what you want to achieve with the formula. 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you tell me

    1)"varFormMode" represent what?

    2)Defaults(SystemAdoptionCard2) represent what?

    If you want to represent a form's mode, you should use formula like this:

    Formname.Mode

     Since you set that formula in multiple form, you need to change form name in different form.

    form1's Item:

    If(Form1.Mode= FormMode.New, Defaults(SystemAdoptionCard2), SharePointIntegration.Selected)

    form2's Item:

    If(Form2.Mode= FormMode.New, Defaults(SystemAdoptionCard2), SharePointIntegration.Selected)

    ....

    Others are similar.

     

    Best regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard