cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fields
Helper V
Helper V

Button dissapearing after clicking on my own will

Hello,

 

I am trying to do a survey, and what i want was, after they click the start, the button would dissapear on their cellphone, so they won't take the servey again! The problem is i don't know the code, and also, i didn't want to subject them by giving their name since this is an anonymous survey!

 

 

Any help would be appreciated

 

Fields

23 REPLIES 23
Anonymous
Not applicable

@Fields, having them anonymous is indeed a bit of a pain.

Maybe you have 2 buttons on the first page - one to login using an ID and one to generate a random ID for when they first open the app and show them a message with the ID and say they need to remember it - and you store it in a list with no other info about it - then when they open the app the second time they can use the ID to log in and you can use it to check if they've submitted something. 

 

@Anonymous, the problem is, i don't want them to use the app after their first use, or if they do, they get blocked in the first main screen...

Achieving this is already hard, and can be very buggy.

What i want, is the user only use that app once, and don't use it anymore...

Anonymous
Not applicable

@Fields I see, that sounds something quite hard to achive. And unfortunately, I can't help you with that 😐 maybe someone else knows how to do it... if it is possible... 

@Anonymous I wanna make this thread up, until someone comes here with a solution! But so far, yours have been great and helped me so far, so once again thank you!

Hi @Anonymous,

 

I know i am bothering with this issue, but i wanted to make a quick update about this topic, what i got in my mind is, the person will be registered no matter what, in the sharepoint column, what i can do is, if the name of the person is Automatically on the sharepoint list, the button will hide! No need to make ID's, and it's still going to be anonymous because no person knows that view...

 

The code that i first tried was on the button Visible:

If(User(EditForm1=true),false)

But it was uncessfull, then i tried this:

If(FormMode, Hidden=true)

At this point, i am trying everything.

Maybe your ID ideia can be actually usefull, if i am able to hide it somewhere!

 

Fields,

 

 

Anonymous
Not applicable

@Fields, I think I understand what you mean - when the person fills in the form the name will be saved automatically on the 'Created By' column, thus you can use this on the Visible property of the button:

 

IsEmpty(Filter(Test, Author.DisplayName = User().FullName).Author)

- this will hide the button if the user has already created an item in the list, or display it if the user didn't. 

You can use this directly on the button Visible property with no other variables. I have tested and it seems to be working for me.

However, it will not delegate for some reason (the blue indication appearing on the Author.DisplayName)

 

Hope this helps 🙂 

View solution in original post

Hey @Anonymous,

 

THat actually does not work, it shows me an error, and keeps hiding for no reason!

Capture.PNGlo.PNG

 

Any help would be appreciated

 

Fields,

Anonymous
Not applicable

You must adapt the Filter to your specific needs - "Test" must be replaced with your list name.

The filter was actually called test as well, but i was doing in the wrong app...

 

But it works great now! Thank you once again, and i guess you have a solution on how to do this without knowing their name... Kinda!

 

Thank you

 

Fields,

Anonymous
Not applicable

True, one thing I wouldn't have thought about.

Glad it works 🙂

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,474)