Skip to content
Snippets Groups Projects

Add class attribute to form

Merged mattwire requested to merge mattwire/inlayfp:formid into main
1 unresolved thread
Files
3
@@ -54,6 +54,7 @@ class FormProcessor extends InlayType {
'submitButtonText' => $this->config['submitButtonText'],
'webThanksHTML' => $this->config['webThanksHTML'],
'publicTitle' => $this->config['publicTitle'],
'formClass' => 'fp-' . preg_replace('/[^a-z0-9]+/i', '-', $this->config['formProcessor']),
];
// We use the function instead of FormProcessorInstance.get API because this returns the field types as objects.
// This allows us to call getOptions() when building the field definitions.
Loading