Display attributes on same fields

Hi,
I would like to know if is possible to display these three different attributes:

On the same line, like this:

For the second case I’m using a repeater type, but I don’t want a repeater, because insert data inside array, I would like just to change layout.

I was thinking in maybe on ‘hivepress/v1/models/request/attributes’ hook I could make some change.

I was editing on this hook to add the repeater type:

$attributes['request_new_date'] = [
			'editable'   => true,

			'edit_field' => [
				'label'  => 'Replicate Date',
				'description' => 'If you want, you can replicate this request for another dates.',
				'type'   => 'repeater',
				'_order' => 160,

				'fields' => [
					'request_new_date'  => [
						'placeholder' => 'Due Date',
						'type'        => 'date',
						'format' 	  => 'Y-m-d',
						'required'    => true,
						'_order'      => 0,
					],

					'request_new_date_start' => [
						'placeholder' => 'GiG time',
						'type'        => 'time',
						'format' 	  => 'H:i:s',
						'required'    => true,
						'_order'      => 1,
					],

					'request_new_date_end' => [
						'placeholder' => 'GiG end time',
						'type'        => 'time',
						'format' 	  => 'H:i:s',
						'required'    => true,
						'_order'      => 2,
					],
				],
			],
		];	

Maybe some way to get the attribute and change the content, and add some fields inside the content.

Regards

Hi,

If you need to change the layout, you should use CSS instead of PHP snippet. Try using this class .hp-form–listing-update, and use the nth-child option to change the width for these fields.

​I hope this is helpful to you.

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