diff --git a/modules/backend/assets/js/october.inputpreset.js b/modules/backend/assets/js/october.inputpreset.js index 87f7a1a46..428ed85b7 100644 --- a/modules/backend/assets/js/october.inputpreset.js +++ b/modules/backend/assets/js/october.inputpreset.js @@ -10,6 +10,8 @@ * for the source and destination input elements. * - data-input-preset-type: specifies the conversion type. Supported values are: * url, file, slug, camel. + * - data-input-preset-prefix-input: optional, prefixes the converted value with the value found + * in the supplied input element using a CSS selector. * * Example: * 'form' ]; + if ($prefixInput = array_get($this->preset, 'prefixInput')) { + $newAttributes['data-input-preset-prefix-input'] = $prefixInput; + } + $attributes = $attributes + $newAttributes; return $attributes; }