Sandbox Tutorial for Caldera Forms on using check-box buttons with variable names

Uncategorized

A simple case and tutorial from my sandbox

As I fiddle with Caldera Forms, a WordPress plug-in, I often make sandbox forms that allow for trial and error and can help to scaffold the overall project. 

In this form, the user can pick six colors. Really, any value is fine, but colors make sense as a placeholder: Red, blue, green, yellow, grey, black, white, whatever. 

In the right side of the top box, the user can turn on and turn off various buttons, check-boxes. 

The magic, with the magic tags, comes into play as the colors with the check-boxes on display. Six conditional statements are needed. 

I was hoping to find a way to put the value of the name of the check-box from a field variable. But that isn't something I was able to figure out. 


Adding the VARIABLE so that the proper color appears when active.

User gets to play around and turn off and on the six buttons.


What was done:

  1. Turned off the summary of the buttons that are not on.
  2. Replace the names with the proper variables.

Tips: Need the magic tag with %. It goes into the default field, not the placeholder field. Made six different conditional statements for SHOW.


This is the desired result.

The content only displays when there is something to report. Blank data is zapped from the screen. Less clutter. More clarity. A conditional expression is set to SHOW when the button is checked.


This is the SUMMARY, and is NOT the desired results

What shows below is far too much info, as it is showing everything that is happening.

Connections to coaching

Swimmers have different events to focus upon. Sally might be gearing for a great time in the 200 fly. Sam might be working to do well on the 100 free. The priorities of all the swimmers are often unique to that individual. So in this example, the favorite event, like a favorite color, can shift. Colors, and swim events, can come in any order.

On any given workout, there are a limited number of test sets and main sets and focus points that can be accomplished. Likewise, if one's favorite color is blue, you can't also wear five other colors all at the same time on the same day. One might wear blue for four of the days and on the fifth day wear an outfit that is not blue. Plus, on any day, one might wear blue and green, and on another day wear blue and white. So the combinations are plentiful. 

With this effort the coach can set up a mini-cycle and stress different events on different days and plan ahead. One can't do everything on every day. 

>