I am trying to use a page in my app (frontend) to register users into my backend system. I have a spreadsheet that records user info which is then passed through to the backend via cloud functions on the Google Cloud Platform.
Ideally, if the current logged-in user hasnโt been recorded in the table yet, then an โAddโ action would be present such that they can register with their info. If the current user however has registered prior, an โEditโ action would be present such that they can change whatever info they previously inputted.
This is similar to a question that I had asked previously, namely this but the solution here doesnโt seem to work anymore. That is, Iโm using
ISBLANK( FILTER( table , [email column] = USEREMAIL() ) )
for the โAddโ action and
ISNOTBLANK( FILTER( table , [email column] = USEREMAIL() ) )
for the โEditโ action. But this only seems to work with the โEditโ action on not the โAddโ. In other words, if a user is brand new to the app, they canโt register their info. Any particular reasons as to why this may be happening?
Your help is appreciated!
Solved! Go to Solution.
@Steve Thanks for the info.
I switched to a card view and that seems to have solved the problems. The method of having actions with conditions such as
IF (IN(USEREMAIL(), alpaca_keys[user_id]), true, false)
or those described in the post I linked earlier all work for this situation.
I passed this case just recently. My solution is:
From Vietnam with love
Iโm afraid this doesnโt really work. If I preview the app as a user that is not in the system, the add action is nowhere to be seen.
For example, bhairav.valera@xxx has already been logged into a keys table. As such, the add user button shows up (we donโt really want this to show up here, but it is there nonetheless) as well as the edit user button (we only want to allow existing users to edit, not add).
If however, I preview the app as another user that is not currently in the system, the add button doesnโt show up
Profile details donโt show, which makes sense, but the add button should still appear correct? Iโm not sure why this is the case.
Additionally, Iโve tried using show-if conditions for the action such as
IF (NOT(IN(USEREMAIL()), keys[user_id]), true, false)
which should only display a particular action depending on whether or not the current user_id is in the keys table or not, but this also doesnโt seem to work.
Thoughts on this?
A detail view will only display overlay buttons if there is a row displayed in the view.
@Steve Thanks for the info.
I switched to a card view and that seems to have solved the problems. The method of having actions with conditions such as
IF (IN(USEREMAIL(), alpaca_keys[user_id]), true, false)
or those described in the post I linked earlier all work for this situation.
User | Count |
---|---|
61 | |
25 | |
14 | |
11 | |
6 |