Hi, I want to set the starting view for new users to be the form to create a new personnel profile. I have a list of personnel with their emails that I can reference their useremail() against. Iโm basically trying to say, "If the userโs useremail() isnโt currently in the list of Personnel (meaning they havenโt been added yet), have their view start on the Create New Personnel Profile view.
IF(
NOT(
IN(
Useremail(),Personnel[email])),Create New Personnel Profile,About)
I canโt seem to get this to work when I try to preview in the mini view to the right. Any advice?
Solved! Go to Solution.
@Luke_Vancleave
You can mimic the emulator on how your registered users see the app. In general the emulator works with your own email. Type the email address there and hit apply.
Hey, so I have been changing that but I canโt seem to make the emulator โStart upโ so I can verify if my start screen expression is working. Iโm attaching a screen shot of my expression for the starting view option but a second one of what I get when I try to re-sync the app
(For context, โPerson2@gmail.comโ is NOT currently in my users table yet so I would want them to start with the Create New Personnel Profile view. They are also not technically in the white list yet if that is also relevant)
I still think the emulator has a bug or is lacking the ability to actually see another email for the starting view.
This is the expression I use in the starting view:
IF(
NOT(IN(
USEREMAIL(),
USERS[USER_EMAIL]
)),
โADD_NEW_USERโ,
โENCOURAGEMENT_DAILYโ
)
The ONLY way I can get it to load the ADD_NEW_USER form is to change my email which is in the my userโs table, (by adding characters to the beginning) which makes it not match my logged in user email, and then reload the tab with the app editor. Then the proper start view is applied.
I assume that โPerson2@gmail.com" is not what you are logged in under.
When I type in a dummy new user email, the emulator does NOT seem to run the starting view expression.
Yeah, I canโt seem to make the starting view expression work for me at all in the emulator or in my actual app on my phone and my expression is basically the same as yours. Any troubleshooting advice?
Ah! There it is. So I didnโt have to delete and re-install, I just had to change my email in the users table, then log out and back in and it gave me the proper screens.
Thatโs a rather backwards way of doing it but it seems to have worked! Thank you!
Glad that worked. Itโs more steps than I would like but at least it works.
I use a similar expression. Iโve found that the emulator often does not apply another email address for starting views. In my experience, the emulator, using other email addresses, has been greatly improved over the past five months. BUT, to test starting views, Iโve had to change my email address in my users table, by putting a few letters in front, then closing and re-opening the tab with the app for it to apply the starting view. Yes, it is a hassle.
@Lucinda_Mason
You donโt need to mess with the email addresses in your table. Provided those email addresses are white-listed in your app, changing the email address at top (as shown in the screenshot) and pressing APPLY button next to it, will sync the app and the emulator will respect to that email address and show any initial view thatโs associated with that email address as per your expression. Itโs quite easy and not been a hassle so far.
Thatโs good to know. My app is still in prototype so I only have a couple of users whitelisted. Iโm checking roles of future users.
User | Count |
---|---|
36 | |
33 | |
27 | |
23 | |
18 |