Jump to content

FieldtypeFormSelect - A field for selecting forms built using the pro FormBuilder module


FireWire
 Share

Recommended Posts

12 hours ago, FireWire said:

@JayGee The module expects Method C so your markup should look something like this:

<?php
$htmxForm = $htmxForms->render('your_form_field');

echo $htmxForm->styles;
echo $htmxForm->scripts;
echo $htmxForm;

The module only swaps what's inside the form markup and shouldn't have any conflicts with scripts or styles.

Option C has been the best option for me because I can add the styles and scripts once on the page wherever I want them rather than directly where forms are rendered. I throw the CSS file up in the <head> element and the scripts at the bottom near the closing <body> tag with my others.

Ah ok perfect thanks - that explains it - I still need to add the form styles. 😎

Thanks for the module and keep up the good work!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...