* @param PageData $page
* @param array $appendContents
*/
- protected function _sendMail($validatedData, $page, $appendContents = [], $subject_ = "", $recipient = "")
+ protected function _sendMail($validatedData, $page, $appendContents = [], $subject_ = "Cubedesigners", $recipient = "")
{
$contents = [];
}
}
- $subject = '';
+
if ($page->form_prefix) {
$subject = '[';
$subject .= $subject_ ?? $page->form_prefix;
$subject .= '] ';
- }else {
- if($subject_) {
- $subject = '[' . $subject_ . '] ';
- }
}
if (isset($validatedData['subject'])) {
let responseClasses = $(form).data('confirmation-classes') || 'text-2xl text-center p-8';
$(form).find('.error').removeClass('error');
$(form).html(`<p class="${responseClasses}">${$(form).data('confirmation')}</p>`);
+ $(".form-info").remove()
cubistga.handleGtag($(form).get(0));
}).catch((error) => {
$(button).text(button.data('text')).prop('disabled', false);