Skip to main content
Question

Simple Form Rule Will Not Work

  • May 21, 2021
  • 0 replies
  • 92 views

Forum|alt.badge.img+4
First of all to put this in context, I run a golf course and am trying to build a really simple tee sheet that lists the names of golfers signed up to play at a particular time.

We encourage people to sign up as threesomes or foursomes.

I have a pre-made table, that includes a record for each tee time for the day.  To make it simple, lets say that table has six fields, time, one field for the name of each golfer in the foursome and a formula field "total number of players" that counts the number of golfers in that record. (and the counter works).

As we want to encourage golfers to sign up as a threesome or a foursome, I want a very simple form rule that fires a message if the number of players in the record is less than three.

So, I have a form rule that says if "total number of players"<=" 2 "display the message" you must book a minimum of three players

When I modify a record and only enter one or two names, the counter shows "1" or "2" but when I hit save, no message is displayed? 

It seems simple to me, but I have been fighting with this all afternoon.....

Jeff





------------------------------
Jeff Rogerson
------------------------------
This topic has been closed for replies.

  • Quickbase Alumni
  • May 23, 2021
It might be easier to just require 3 of the 4 Name fields.

------------------------------
Blake Harrison
bharrison@datablender.io
DataBlender - Quickbase Solution Provider
Atlanta GA
404.800.1702 / http://datablender.io/
------------------------------

Forum|alt.badge.img+9
If I am understanding your setup correctly, you have 4 separate fields for each golfer, not a child table correct?  When creating the record, the count will not exist until the record is saved, preventing the error message from triggering.  Instead you can change your rule FROM # of players to <=2 TO: if Golfer 3 is blank.  (You may want to add an override button allowing 1 or 2 golfers to sign up...i.e. if override is not checked and Golfer3 is blank)

Golfer1
Golfer2
Golfer3
Golfer4
​

------------------------------
Christine White
------------------------------

Forum|alt.badge.img+14
If you haven't already, try making the form rule:

When the record is saved and # of golfers is <=2, display message.

I don't think the display message fires simply from a formula field changing.
​

------------------------------
Mike Tamoush
------------------------------