hello,
how can i change “replay to listing” formular? Would add a check up field and additional text with terms and policy befor clicking the sendin button. How can I do this?
I need Ich stimme den Nutzungsbedingungen zu /terms and policy
kind regards
martin
yevhen
June 29, 2022, 9:40am
2
Please try this PHP snippet but please note that it can require further customization
add_filter(
'hivepress/v1/models/message',
function($model){
$model['fields']['custom_message_terms_policy'] = [
'caption' => 'I agree with <a href="#" target="_blank">terms and policy</a>',
'type' => 'checkbox',
'required' => true,
'_external' => true,
'_order' => 1000,
];
return $model;
},
1000
);
add_filter(
'hivepress/v1/forms/message_send',
function($form){
$form['fields']['custom_message_terms_policy'] = [
'caption' => 'I agree with <a href="#" target="_blank">terms and policy</a>',
'type' => 'checkbox',
'required' => true,
'_external' => true,
'_order' => 1000,
];
return $form;
},
1000
);
1 Like
yevhen:
add_filter(
'hivepress/v1/models/message',
function($model){
$model['fields']['custom_message_terms_policy'] = [
'caption' => 'I agree with <a href="#" target="_blank">terms and policy</a>',
'type' => 'checkbox',
'required' => true,
'_external' => true,
'_order' => 1000,
];
return $model;
},
1000
);
add_filter(
'hivepress/v1/forms/message_send',
function($form){
$form['fields']['custom_message_terms_policy'] = [
'caption' => 'I agree with <a href="#" target="_blank">terms and policy</a>',
'type' => 'checkbox',
'required' => true,
'_external' => true,
'_order' => 1000,
];
return $form;
},
1000
);
Hallo Yevhen,
sooo much thanks for this great job you have done.
kind regards
martin
system
Closed
July 30, 2022, 5:19pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.