Forum Discussion

JamesCarr's avatar
JamesCarr
Qrew Trainee
5 years ago

Adjust Form If Child Table Has A Record With Current Date

I have been searching and searching and cannot find my answer. I am hoping someone can help. 

I have a table to track who has RSVP'd for an event related to another table tracking the events to RSVP to (Date, event name, cost, and link are the fields). I have the relationship as one event to many RSVP's. Here is my dilemma:

I want the form for the RSVP's to display particular sections I have, depending on whether or not the event table has one or more records with the date field having the current date. I was thinking I needed to establish another relationship with the events related to itself, so I could use a summary field to get a count of records with the current date. Unfortunately, my summary fields always end up blank so, I am not understanding summary fields completely and/or, I cannot do what I want the way I want. I considered maybe using a formula field with, perhaps, an API_DoQueryCount call or something but, trying to figure that out has been even further beyond my understanding. 

Any suggestions on approach, links to explanations for how summary fields and/or using API calls in formulas would be greatly appreciated. Please do not direct me to QuickBase's help guides. I have read and read their info and, while I am future along with the overall development of the app, I am still stuck with this dilemma. Thank any and everyone who chimes in for attempts to assist in advance for your time.

------------------------------
James Carr
------------------------------
  • Here is my understanding of the question.

    You are saying that One Event has Many RSVPs.

    For some reason,  you want the Parent Event to know if any of the child RSVPs have today's date  in the [RSVP Response Date] field.
    .
    To make that field it would be a Summary field of he # of events where the [RSVP Response Date] is the current date.

    Was that your question? 



    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • JamesCarr's avatar
      JamesCarr
      Qrew Trainee
      Hi, Mark. Thank you for replying and sorry for the confusion. I want the child RSVP to know if the parent Event has a current date.  I don't want to add a child RSVP without a parent Event having the current date.

      ------------------------------
      James Carr
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        You can simply look up the the [Event Date] field from the parent down to the RSVP.  If you want to know if that date is today, then you can make a formula checkbox field called [Event is Today] with a formula of

        if([Event Date] = Today(), true)

        If you are trying to suppress the Add RSVP button when the Event is on or after today, then  you would do that on the Parent Event Record.  You can use a form rule

        When [Event Date] is on or before the current date
        hide ADD RSVP

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------