Skip to content
Snippets Groups Projects

Add class attribute to form

Merged
mattwirerequested to merge
mattwire/inlayfp:formid into main
1 open thread

Files

+ 1
0
@@ -52,6 +52,7 @@ class FormProcessor extends InlayType {
'init' => 'inlayFPInit',
'submitButtonText' => $this->config['submitButtonText'],
'webThanksHTML' => $this->config['webThanksHTML'],
'formID' => 'fp-' . preg_replace(['/_/', '/[^a-z-]/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