# Button with 2 actions

**URL:** https://community.glideapps.com/t/button-with-2-actions/12607
**Category:** Ask for Help
**Created:** [July 16, 2020, 5:37pm UTC](https://community.glideapps.com/t/button-with-2-actions/12607 "2020-07-16T17:37:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Al.Glusc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/al.glusc/32/10767_2.png) [@Al.Glusc](https://community.glideapps.com/u/Al.Glusc)
#### Post date: [July 16, 2020, 5:37pm UTC](https://community.glideapps.com/t/button-with-2-actions/12607/1 "2020-07-16T17:37:04Z")

</div>

Hello!  
I need a simple solution for a difficult problem. 🙂 Something like a button would be perfect!

Please read these few lines to get the context…  
Basically I’m trying to make an employee directory.  
Users log in with theirs (whitelisted) e-mails… The app gives them some basic info: where their colleagues work, their work e-mails, phones etc…  
BUT!  
there is also their clleagues private data like personal phone numbers, private e-mails, … which souldn’t be visible on “initial data card” but only if someone presses a button.  
after pressing the button another card with private datas opens AND the system logs the e-mail of a user who pressed the button, so the user whose data is exposed can see when was his/hers personal card opened and by whom.

Is there a way to make this work? Please help! 🙂

---

<div class="post-metadata">

### Author: ![Glider](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/glider/32/9699_2.png) [@Glider](https://community.glideapps.com/u/Glider)
#### Post date: [July 16, 2020, 6:02pm UTC](https://community.glideapps.com/t/button-with-2-actions/12607/2 "2020-07-16T18:02:37Z")

</div>

right now the only way to get the current user email is true form or editing  
so you create a form button with a special value which is current user email and a check box  
so when the user submits make the private info only visible if the checkbox is true  
so you can relate the email of the person who viewed

---

<div class="post-metadata">

### Author: ![Glider](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/glider/32/9699_2.png) [@Glider](https://community.glideapps.com/u/Glider)
#### Post date: [July 16, 2020, 6:04pm UTC](https://community.glideapps.com/t/button-with-2-actions/12607/3 "2020-07-16T18:04:53Z")

</div>

welcome to the community

---

<div class="post-metadata">

### Author: ![Al.Glusc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/al.glusc/32/10767_2.png) [@Al.Glusc](https://community.glideapps.com/u/Al.Glusc)
#### Post date: [July 16, 2020, 6:20pm UTC](https://community.glideapps.com/t/button-with-2-actions/12607/4 "2020-07-16T18:20:22Z")

</div>

This was quick! Thanx! 🙂  
I was considering using forms to solve this issue BUT forms are preformated and submit button is almost hidden (for my typical user - older doctors and nurses). Another problem is that submit button can not be translated or renamed… ☹

---

<div class="post-metadata">

### Author: ![Glider](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/glider/32/9699_2.png) [@Glider](https://community.glideapps.com/u/Glider)
#### Post date: [July 16, 2020, 6:21pm UTC](https://community.glideapps.com/t/button-with-2-actions/12607/5 "2020-07-16T18:21:19Z")

</div>

i too wish we can rename submit

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [July 16, 2020, 9:27pm UTC](https://community.glideapps.com/t/button-with-2-actions/12607/6 "2020-07-16T21:27:36Z")

</div>

Would you like to create a second login page for this private users emails, like an admin or manager?
