You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,11 @@ The `Submit` button is automatically disabled on submission to prevent duplicate
42
42
43
43
FormBuilderHtmx uses FormBuilder's "Option C: Preferred Method" for rendering. Refer to the 'Embed' tab of your Form Setup page for additional details.
44
44
45
-
`$htmxForms->render()` is a drop-in replacement for the equivalent FormBuilder method. It can be hooked (details below) and accepts its second `$vars` argument. By drop-in replacement, it allows you to continue using the FormBuilder API as you would expect, including the script and CSS utilities.
45
+
`$htmxForms->render()` is a drop-in replacement for the equivalent FormBuilder method. It can be hooked (details below) and accepts its second `$vars` argument. By 'drop-in replacement', it allows you to continue using the FormBuilder API as you would expect, including the scripts and CSS utilities.
46
46
47
47
```html
48
48
<!--
49
-
Keep your workflow, $htmxForms returns the same object as $forms
49
+
$htmxForms returns the same object as $forms
50
50
The second prefill parameter mirrors FormBuilder, add prefill values as needed
@@ -119,8 +119,8 @@ Attempting to add or replace these attributes may lead to issues or cause forms
119
119
120
120
## CSRF Protection
121
121
122
-
**CSRF protection may need to be disabled for forms using HTMX/AJAX**
123
-
Test to ensure that CSRF errors aren't present when submitting your forms. Disable CSRF if issues are experienced.
122
+
**CSRF protection must be disabled for forms using HTMX/AJAX**
123
+
Data that the CSRF feature in FormBuilder is not consistent across AJAX requests and submissions will fail with an error. If you are getting odd results or forms that are not working, check that CSRF is disabled before further troubleshooting.
0 commit comments