1. Go to this page and download the library: Download firewire/formbuilder-htmx library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
firewire / formbuilder-htmx example snippets
$wire->addHookAfter('FormBuilderHtmx::render', function(HookEvent $event) {
$formHtmlMarkup = $event->return;
// Modify markup as desired
$event->return =<<<EOT
<p>Look at these AJAX processed results:</p>
{$formHtmlMarkup}
EOT;
});
html
<!--
Keep your workflow, $htmxForms returns the same object as $forms
The second prefill parameter mirrors FormBuilder, add prefill values as needed
-->
$htmxForm = $htmxForms->render('your_form_field', [
'first_name' => "Biff",
'last_name' => "Tannen",
'email' => "[email protected]",
]);
echo $htmxForm->styles;
echo $htmxForm->scripts;
echo $htmxForm;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.