How do I change what is showing up for requests?

I am seeking an answer on how to customize what shows up in the “Requests” previews.

Below is what is currently showing up:

Below is what is in my form:

I would like to have only the “Title” and “Planning Budget” show up in the preview. Ideally, I’d like the planning budget to show up with the title “Planning Budget” (example: “Planning Budget: $200”.

Can you please advise how I can customize this preview?

Please try this PHP snippet. Please change your_attribute_field_name in the code snippet on the attribute field name for which you want to make these changes. If you are not familiar with the code customization, then please consider hiring someone for custom work https://fvrr.co/32e7LvY

add_filter(
	'hivepress/v1/models/request/attributes',
	function($attributes){
		
		// Hide attribute in the request block.
		if(isset($attributes['your_attribute_field_name'])){
			$attributes['your_attribute_field_name']['display_areas'] = ['view_page_primary'];
		}
		
		// Change display format for attribute
		if(isset($attributes['your_attribute_field_name'])){
			$attributes['your_attribute_field_name']['display_format'] = 'Planning Budget: %value%';
		}
		
		return $attributes;
	},
	1000
);
1 Like

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