Bit Form – WordPress Form Builder Plugin

Product details

Q: Pre-filling and disabling form fields in a modal dialog for course registration

I have an HTML table showing course availability with columns: course name, course date, instructor, and a Register button. When the user clicks Register, I want a modal form to open with fields pre-filled for course name, instructor, and date. Those fields should be disabled so the user can't change them. How can I implement this?

rizkihidayatAug 15, 2025
Share
Helpful?
Log in to join the conversation
Posted: Aug 16, 2025

If you plan to open the form on another page (not in a modal), you can pass the course data via URL parameters and set the fields' values upon page load. Bit Form has a read-only setting for fields, which will prevent users from editing the course details. If you prefer using a modal, trigger a custom function on the "Register" button to send the data to the form field.

Posted: Aug 16, 2025

For more information on fetching data from URL parameters, please refer to the documentation:
Fetch Data from URL Parameter: https://bit-form.com/wp-docs/others/fetch-data-from-url-parameter/