Support » Plugin: Calculated Fields Form » DS condition breaking dependencies

  • Resolved rgallini


    I have a test form at

    For purposes of this test, here’s the business rules:
    1. Two column form
    2. Collect first name, last name, job title (if not executive) or role (if an executive), City, State. All fields are required.

    1. I’m using a DIV field set to 2 columns with the 8 fields inside.
    2. Dependencies:
    a. If the radio field “Executive” is set to No, the field “Title” shows (default)
    b. If the radio field “Executive” is set to Yes, the Dropdown “Role” appears.
    c. If the user selects Role “Other”, Title shows again.
    3. DS Recordset containing states
    4. DS Dropdown for State field

    The form works as expected


    when making the user select a State. When using a CSV, Dropdown DS ignores a blank field. But the DS Dropdown does allow for conditions, so I set the first State value to “-” and made the exception fieldnameX!=”-” (where X is the fieldname for State). That makes the state field work as desired. the user has to select a state. But, it breaks the conditions of the Executive radio field, in that both Role and Title appear together regardless of the value selected.

    Any thoughts on why this is happening?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Correction: DS Recordset ignores the blank field. Sorry for the confusion.

    It works on the test form. Must have another problem on my main form. Sorry!

    Plugin Author codepeople



    The condition is incorrect, for example, if the CSV file includes the column: column_a, and you want filtering the results by this column, the condition would be:

    record['column_a'] == '<%fieldname19%>' && '<%fieldname19%>' != '-'

    If you want I can check the structure of your form, but I would need the access to your WordPress.

    Please, create a ticket in my personal website:

    Best regards.

    Thanks guys. This is what I wound up doing: Using a CSV for states, I added a second column: one column for Label and one column for Value. The label has first row “Select” and value is blank. The rest mirror the state abbreviation for Label and Value. Then set DS Dropdown to use Value column for Values, Label for texts, and select Value to return. Then, when State is a required field, the value will be blank when the text shows “Select”.

    Plugin Author codepeople



    You should emulate the behavior you describe with the CSV files. I need check the CSV files and the form’s structure for giving you better instructions.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘DS condition breaking dependencies’ is closed to new replies.