{
  "name": "Course Enrollment Form",
  "description": "Collects student details for course registration or add/drop requests.",
  "category": "Academic",
  "tags": [
    "course",
    "registration",
    "add-drop",
    "student",
    "academic"
  ],
  "version": 2,
  "form_data": {
    "name": "Course Enrollment Form",
    "heading": "Course Registration / Add-Drop",
    "description": "Submit a request to register for, add, or drop courses.",
    "formpages": [
      1
    ],
    "pages": [
      {
        "id": 1,
        "name": "Course Request",
        "heading": "Course Request",
        "description": "Student details and course selections.",
        "folder": "0",
        "pagerows": [
          1,
          2,
          3,
          4,
          7,
          8,
          5,
          6
        ],
        "rows": [
          {
            "id": 1,
            "name": "Student Info",
            "heading": "Student Information",
            "description": "Provide your contact details.",
            "folder": "0",
            "rowcolumns": [
              1,
              2
            ],
            "columns": [
              {
                "id": 1,
                "name": "Column 1",
                "fields": [
                  1
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 1,
                    "field_type": "inputtext",
                    "name": "Full Name",
                    "heading": "Full Name",
                    "description": "Enter your full legal name.",
                    "is_required": 1,
                    "placeholder": "Casey Morgan"
                  }
                ]
              },
              {
                "id": 2,
                "name": "Column 2",
                "fields": [
                  2
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 2,
                    "field_type": "inputemail",
                    "name": "Email Address",
                    "heading": "Email Address",
                    "description": "University or personal email.",
                    "is_required": 1,
                    "placeholder": "casey.morgan@example.edu"
                  }
                ]
              }
            ]
          },
          {
            "id": 2,
            "name": "Student Details",
            "heading": "Student Details",
            "description": "Program and student ID.",
            "folder": "0",
            "rowcolumns": [
              3,
              4
            ],
            "columns": [
              {
                "id": 3,
                "name": "Column 1",
                "fields": [
                  3
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 3,
                    "field_type": "inputtext",
                    "name": "Student ID",
                    "heading": "Student ID",
                    "description": "Campus or registrar ID.",
                    "is_required": 1,
                    "placeholder": "A12345678"
                  }
                ]
              },
              {
                "id": 4,
                "name": "Column 2",
                "fields": [
                  4
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 4,
                    "field_type": "selectfield",
                    "name": "Program",
                    "heading": "Program",
                    "description": "Select your program or major.",
                    "is_required": 1,
                    "field_options": {
                      "": {
                        "Business": "business",
                        "Computer Science": "computer_science",
                        "Education": "education",
                        "Engineering": "engineering",
                        "Health Sciences": "health_sciences",
                        "Psychology": "psychology"
                      }
                    }
                  }
                ]
              }
            ]
          },
          {
            "id": 3,
            "name": "Term & Action",
            "heading": "Term & Action",
            "description": "Select term and request type.",
            "folder": "0",
            "rowcolumns": [
              5,
              6
            ],
            "columns": [
              {
                "id": 5,
                "name": "Column 1",
                "fields": [
                  5
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 5,
                    "field_type": "selectfield",
                    "name": "Term",
                    "heading": "Term",
                    "description": "Select the term for this request.",
                    "is_required": 1,
                    "field_options": {
                      "": {
                        "Fall": "fall",
                        "Spring": "spring",
                        "Summer": "summer"
                      }
                    }
                  }
                ]
              },
              {
                "id": 6,
                "name": "Column 2",
                "fields": [
                  6
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 6,
                    "field_type": "inputradio",
                    "name": "Request Type",
                    "heading": "Request Type",
                    "description": "Choose add, drop, or swap.",
                    "is_required": 1,
                    "field_options": {
                      "": {
                        "Add": "add",
                        "Drop": "drop",
                        "Swap": "swap"
                      }
                    }
                  }
                ]
              }
            ]
          },
          {
            "id": 4,
            "name": "Course List",
            "heading": "Course Selection",
            "description": "List each course and section.",
            "folder": "0",
            "rowcolumns": [
              7
            ],
            "columns": [
              {
                "id": 7,
                "name": "Column 1",
                "fields": [
                  7
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 7,
                    "field_type": "inputtext",
                    "name": "Course Code & Section",
                    "heading": "Course Code & Section",
                    "description": "Example: BIO 101 - 01.",
                    "is_required": 1,
                    "placeholder": "BIO 101 - 01",
                    "iterations": {
                      "allow": 1,
                      "min": 1,
                      "max": 6,
                      "unique": 0,
                      "add_button_label": "Add another course"
                    }
                  }
                ]
              }
            ]
          },
          {
            "id": 7,
            "name": "Course to Drop",
            "heading": "Course to Drop",
            "description": "Provide details for the course to drop.",
            "folder": "0",
            "rowcolumns": [
              10
            ],
            "columns": [
              {
                "id": 10,
                "name": "Column 1",
                "fields": [
                  10
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 10,
                    "field_type": "inputtext",
                    "name": "Course to Drop",
                    "heading": "Course to Drop",
                    "description": "Course code and section to drop.",
                    "is_required": 0,
                    "is_hidden": 1,
                    "placeholder": "BIO 101 - 01"
                  }
                ]
              }
            ]
          },
          {
            "id": 8,
            "name": "Permission Number",
            "heading": "Permission Number",
            "description": "Provide a permission number if required.",
            "folder": "0",
            "rowcolumns": [
              11
            ],
            "columns": [
              {
                "id": 11,
                "name": "Column 1",
                "fields": [
                  11
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 11,
                    "field_type": "inputtext",
                    "name": "Permission Number",
                    "heading": "Permission Number",
                    "description": "Only required for certain add requests.",
                    "is_required": 0,
                    "is_hidden": 1,
                    "placeholder": "PN-12345"
                  }
                ]
              }
            ]
          },
          {
            "id": 5,
            "name": "Notes",
            "heading": "Additional Notes",
            "description": "Optional notes for the registrar.",
            "folder": "0",
            "rowcolumns": [
              8
            ],
            "columns": [
              {
                "id": 8,
                "name": "Column 1",
                "fields": [
                  8
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 8,
                    "field_type": "textarea",
                    "name": "Notes",
                    "heading": "Notes",
                    "description": "Add any context for your request.",
                    "is_required": 0,
                    "placeholder": "Optional..."
                  }
                ]
              }
            ]
          },
          {
            "id": 6,
            "name": "Terms",
            "heading": "Enrollment Terms",
            "description": "Accept the registration terms before submitting.",
            "folder": "0",
            "rowcolumns": [
              9
            ],
            "columns": [
              {
                "id": 9,
                "name": "Column 1",
                "fields": [
                  9
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 9,
                    "field_type": "termsconditions",
                    "name": "Enrollment Terms",
                    "heading": "Enrollment Terms",
                    "description": "Review and accept the enrollment terms.",
                    "is_required": 1,
                    "field_settings": {
                      "checkbox_label": "I have read and accept the enrollment terms",
                      "anchor_text": "View enrollment terms",
                      "subtext": "You must accept the enrollment terms to submit this request.",
                      "link_type": "post",
                      "page_id": 0,
                      "post_id": 0,
                      "open_in_modal": 1,
                      "accept_label": "Accept terms",
                      "decline_label": "Decline"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "conditional_logic": [
      {
        "all": [
          {
            "item": "field",
            "item_id": "6",
            "attribute": "value",
            "evaluator": "equal_to",
            "input": "drop"
          }
        ],
        "any": [],
        "actions": [
          {
            "item": "field",
            "item_id": "10",
            "attribute": "visibility",
            "action": "show",
            "input": ""
          }
        ]
      },
      {
        "all": [
          {
            "item": "field",
            "item_id": "6",
            "attribute": "value",
            "evaluator": "equal_to",
            "input": "swap"
          }
        ],
        "any": [],
        "actions": [
          {
            "item": "field",
            "item_id": "10",
            "attribute": "visibility",
            "action": "show",
            "input": ""
          }
        ]
      },
      {
        "all": [
          {
            "item": "field",
            "item_id": "6",
            "attribute": "value",
            "evaluator": "equal_to",
            "input": "add"
          }
        ],
        "any": [],
        "actions": [
          {
            "item": "field",
            "item_id": "10",
            "attribute": "visibility",
            "action": "hide",
            "input": ""
          },
          {
            "item": "field",
            "item_id": "11",
            "attribute": "visibility",
            "action": "show",
            "input": ""
          }
        ]
      },
      {
        "all": [
          {
            "item": "field",
            "item_id": "6",
            "attribute": "value",
            "evaluator": "not_equal_to",
            "input": "add"
          }
        ],
        "any": [],
        "actions": [
          {
            "item": "field",
            "item_id": "11",
            "attribute": "visibility",
            "action": "hide",
            "input": ""
          }
        ]
      }
    ],
    "user_action": {
      "type": "show_success_message",
      "message": "Your course request has been submitted successfully.",
      "url": ""
    }
  }
}
