Visibility of a Component based on a different sheet?

Is it possible to set a condition for visibility on a different sheet from where the component is placed? To give a little bit of context my app is an on-demand market place for DIY’ers to get advice or hire someone at short notice. I’ve made good use of component visibility throughout and I’m really proud of what I’ve achieved so far

I’m looking for a solution where once a tradesperson (contractor) has accepted a job they are barred from accepting others until their current job is completed. Using an Uber for example, a driver cannot accept all requests around them as riders would be waiting a very long time and there’d be none left for other drivers.

On a high level view, the spreadsheets handles new requests, job allocation and completion of the requests. Glide handles the form entries and strategically placed visible and invisible components make up the app’s workflow.

for instance

  1. A DIY’er submits a request -> form component
  2. The DIY’er prompted to make payment
  3. contractors can view a feed on unallocated jobs and accept/reject a request with a form
  4. title component’s title and details field are dynamic and communicate when their request is accepted
  5. DIY’er’s request is no longer visible to other tradespeople once accepted
  6. tradesperson will get a clickable link for WhatsApp message with the DIY’ers number, but only after DIY’er has paid.
  7. if after 30 minutes the DIY’er hasn’t been contacted, they will get a clickable link for a WhatApp message to notify me of the delay.
  8. the required service is carried out
  9. tradesperson marks job as complete using a different form

The form responses from the DIY’ers are fed into googlesheets and are further extended on Glides with several relation, lookup, template and if-then-that columns to manage the workflow mentioned above.

There is a clock in / clock out sheet and associated form for the contractors to let the app know who’s online and when. On another sheet, a query pulls in data from a sheet where the tradespeople Accept jobs allowing me to handle job rejections and ensure they don’t feed onto the main job requests sheet.
These two sheets allow me to determine which tradespeople are available, busy or offline on the main tradespeople master sheet.

All unallocated jobs are shown on page in the app as an inline list. As per point 5, a job will disappear once accepted. I tried to reference the status (available, busy, offline) as lookup column in the job requests page but this didn’t work because the records are for the specific job not the tradesperson themselves. Also I think the status would populate until after the job had been accepted anyway (someone correct me if I am wrong).

In my current approach there doesn’t seem to be a way where i can set the visibility of new job request based on the condition of a cell in a different sheet (tradespeople master sheet)

Forgive me if I’m not making any sense and if this has already been asked and answered. Has anyone attempted an uber clone in Glide, does anyone have a suggestions on how to prevent a one tradesperson from gobbling up all the available jobs requests?

In Step 1, are you creating a RequestID value by passing a special value -> unique ID?

yes, I’m wasn’t 100% sure how to apply them but I made sure that all my forms pass a unique ID value in case they’d come in handy later on

Ok. I’m actually working through similar logic in one of my apps. Let me solidify and I’ll get back to you.

1 Like

Here’s what I’ve done. Hope it helps you with your app. It was tricky. I wanted a complete inline list of clients to be visible if they HAD NOT been selected by the host. Once selected, I wanted ONLY the selected client to be seen. There was no way for me to set a filter for if it’s empty OR if it’s full, so I had to create two identical components that were filtered differently and had different visibility settings. The result is smoke-and-mirrors-seamless:

Hi Hemmings,
I am creating a similar Uber clone app for online tutoring. In the app, there are students who submit tutoring requests, and tutors who accept them. So, I have a similar issue of not allowing tutors to take requests once they have taken a request till the time they complete the request. And, I encountered the same problem you have mentioned. This is how I have solved it.

I have a Tutors sheet, which has details of each tutor, one tutor per row. I have the Tutoring Requests sheet where each student request for tutoring appears as a row. In each row for each tutoring request, there is a Session Completed column, which is true, after the tutor has completed the tutoring session. Each tutoring request row also has an email column which shows the email of the tutor who has accepted the request.

As you mentioned, the visibility filter can only be used from the Tutors sheet, and in the Tutors sheet, I have a column named Currently Not Occupied and a column named Available for each tutor row. If Available is true, it means tutor is available now, and if Currently Not Occupied is True, that means the tutor is not serving any other request and free for new requests. The problem was how to detect from the Tutoring Requests sheet, if the tutor is currently free or not free. Since this sheet will have many requests done by all tutors, first I had to filter only those requests for one tutor based on the tutors email. Then, from these requests, I had to figure out if there is any one request which has been accepted but not completed. And, then I had to pass this value to the Tutors sheet. Since I could not detect which request is the current request, I just passed all the values of the Session Completed column to the Currently Not Occupied column in the Tutors sheet. If one request is not completed, the Session Completed column will be False. And, then I can detect if the tutor is not free by the condition “The Currently Not Occupied column contains False”.

The Currently Not Occupied column used the Google sheet formula: =JOIN(", ",FILTER(‘Connect With a Tutor’!J:J,‘Connect With a Tutor’!H:H=G3)).
The Filter function filters the Session Completed column(J) from all rows in the tutoring requests sheet (Connect With a Tutor sheet) based on the tutor email which is present in G column in Tutors sheet, and then joins them. So, if there are three tutoring request, of which all are complete except one which the tutor is currently doing, this cell will have the values TRUE,TRUE, FALSE. So, if this column contains a FALSE value, it means the tutor is not free to do another request. Thus, I have got a visibility condition right on the Tutors sheet. This is what I think you would like to have.

Now, on the Tutors Dashboard, I have a button Take a Tutoring Session which is linked to Tutors sheet. When tutor clicks on this button, on the Tutors sheet page, I have three components. One is a button Take a Tutoring Session now which will be visible only if Available is True and Currently Not Occuppied does not contain False. Next is a Rich Text message "As you are taking a tutoring request now, more requests will be available once you are done with the current tutoring request."which is visible only if Currently Not Occupied contains False. I have another Rich Text message "Please be available"with a Switch to make Available True. This is visible only if Available is not true.

Let me know if anything is unclear.

Great responses Gents!

I appreciate my post wasn’t the most coherent but thankful you were able understand my dilemma . I read your responses first thing and took the rest of the morning to digest.

My key takeaway was that your implementations had one thing in common, the use of tutor page @vijay and host page @Robert_Petitto for the visibility condition. I had already plumbed in the available/busy/offline status so my solution was simply to have a button on tradesperson page which opens an inline list of job requests.

The smoke and mirrors as @Robert_Petitto puts it was to make that new button visible when they tradesperson’s status is set to “available” and viola problem solved… almost.

I noticed in testing that the nature of navigation through pages in Glide means that on their way back to their profile page they will see the inline list again! As it’s an MVP this works just fine for me.

Even in production it’s not too much of a problem as it’s really clear on the tradesperson profile between open and closed jobs. it wouldn’t scale well I know but it’s a good start. will have to make it clear that having more than one job open is against the rules!

Thanks so much @Robert_Petitto and @vijay for coming back to me! Your input was highly valued and much appreciated!


How is the app going? I’m also looking into building a tutoring app and doing some research. We have a company but would love to save time on connecting tutors,booking sessions, receiving payments,etc.

Sorry, the work got abandoned and haven’t done much further on it.

How far have you gone into making the app? Do you need some help?