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 / Make icon visible depe...
Power Apps
Answered

Make icon visible depending on existence of record

(0) ShareShare
ReportReport
Posted on by 36

Hi 

I have an Editform that is used both to enter details for new records, and edit fields for existing records.

I need to have an icon that is visible only if a record has been created and saved - i.e. in edit 'mode' and not in create 'mode'.

Can anyone advise what the control would be to achieve this for the Visible property of the icon?

Many thanks.

Categories:
I have the same question (0)
  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey! So, 

    write this on visible property of icon:

     

    If( Form.ViewMode = Form.Edit; true; false)

     

    If youa re editing, it will show hte icon

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

  • TDB-Jim Profile Picture
    36 on at

    Thanks for the info,

    However this is always in edit mode. Either adding a new record (icon hidden) or editing a record that has previously been added (icon visible).

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Ok. Check IF ALL fields are empty. If yes, the form is new

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

  • TDB-Jim Profile Picture
    36 on at

    Tried that, however once you start entering data into any of the fields the icon appears. Hence why I titled the question as existence of record - and not contents of a field. I don't want the icon to be visible on the edit form when creating a new record. Once the record has been created the icon needs to be visible. So, open edit form to create new record, icon hidden, enter data and write to excel. Open edit form to access the new record, icon visible. Hope that all makes sense.

  • TDB-Jim Profile Picture
    36 on at

    My mistake - sorry I'm new to Power Apps? Your first response would work, as Editform is used for the edit, and Newform for the addition of a new record. However I cannot get the control to work with the info in your first reply.

  • TDB-Jim Profile Picture
    36 on at

    Got it - If(EditForm1.Mode=FormMode.Edit,true,false)

     

    Many thanks.

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard