PHPRad Classic Initial 2.7.3 Forum

PHPRad Forum => Questions => Topic started by: diegoh on November 02, 2020, 01:48:06 PM

Title: Several fields in the same row.
Post by: diegoh on November 02, 2020, 01:48:06 PM
Hello:

How can I show many fields in the same form row?

Example:
Row1:    Name:__________________   Lastname: _____________________   Age: ________________
Row2:    Address:__________________________________________________________________________

Can it be done in VIEW /EDIT pages ? Or it can be only done in ADD pages?
Thanks
Title: Re: Several fields in the same row.
Post by: willvin on November 03, 2020, 12:13:35 AM
@diegoh‍ it can only be done on the add page and edit page. For the add and the view page please use FieldWidth in Add/Edit page Field Properties, to set the field for each field and this would arrange your fields (E.g setting your first two fields, FieldWidth to col-md-6 makes the two fields share the same row and setting your first three fields, FieldWidth to col-md-4 makes the three fields appear on the same row). If you want to change the design for the view page, please edit the view page as a custom by clicking the custom checkbox beside the page name and you can then write your HTML code.

Note: phprad uses bootstrap, you can read more about bootstrap grid here (https://getbootstrap.com/docs/4.0/layout/grid/).