Terms and policy in send a “replay to listing” formular

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

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

Hallo Yevhen,

sooo much thanks for this great job you have done.

kind regards

martin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.