Choose the display order of custom fields
- Thread started
- Last updated
What you’ll achieve
Arrange custom fields in the order you want them to appear.
My site
Use Fields Manager to arrange custom fields in the order visitors should see them. In Fields Manager, filter by the field group, then drag the fields into the required order and save the ordering. For example, place country before state, then city. Check the listing form and detail page after saving the field order.
JReviews 6 Early Access
Put country, state, and city in the correct order
Keep Country, State, and City in the same field group. After saving the order in Fields Manager, open the listing form and a listing detail page that displays the group.
The modern form and field-group output use the saved field ordering. This changes the actual document order, so keyboard navigation follows the same sequence.
If the order still looks different, check whether a custom Blade template renders individual fields in a fixed order. Update that template's field sequence or restore the standard field-group component. Ordering in Fields Manager cannot reorder hardcoded markup in a custom template.
JReviews 5 and v6 Legacy
If one layout needs a different visual order, use the CSS below. CSS changes visual order without changing stored ordering or keyboard navigation order.
Joomla. Add your CSS rules to templates/jreviews_overrides/resources/css/custom.css.
WordPress. Add your CSS rules to jreviews_overrides/resources/css/custom.css.
Create the file if it does not exist. Keep existing rules. JReviews loads this stylesheet after its own styles.
Use an active custom JReviews theme. If you do not have one, create and select one with the custom-theme setup.
Joomla. Save the CSS rules in templates/jreviews_overrides/views/themes/{your-theme}/theme_css/custom_styles.css.
WordPress. Save the CSS rules in jreviews_overrides/views/themes/{your-theme}/theme_css/custom_styles.css.
Replace {your-theme} with the active custom theme's folder. Start a new stylesheet empty and add only your rules. Clear Cache & File Registry after adding a new file.
Change a field group in the listing form
/* Legacy submission form */
#group_common {
display: flex !important;
flex-flow: column;
}
#group_common > .jrFieldDiv.jrCountry { order: 1; }
#group_common > .jrFieldDiv.jrState { order: 2; }
#group_common > .jrFieldDiv.jrCity { order: 3; }
Open the listing form, right-click Country, and choose Inspect. Find the surrounding <fieldset> and its id, such as group_common. Replace #group_common with # followed by that ID. For each field, find the enclosing element whose classes include jrFieldDiv; copy its field-specific class, such as jrCountry, and keep the leading . in the CSS. Repeat for State and City. Match capitalization exactly.
Change a field group on the detail page
.jrFieldGroup.common {
display: flex;
flex-flow: column;
}
.jrFieldGroup.common > .jrFieldGroupTitle { order: -1; }
.jrFieldGroup.common > .jrFieldRow.jrCountry { order: 1; }
.jrFieldGroup.common > .jrFieldRow.jrState { order: 2; }
.jrFieldGroup.common > .jrFieldRow.jrCity { order: 3; }
Open the listing detail page, right-click Country, and choose Inspect. Find the enclosing group with class jrFieldGroup and note its other group class, such as common. Replace .common in .jrFieldGroup.common with that class, keeping the leading .. For each field, find the surrounding row whose classes include jrFieldRow; copy its field-specific class, such as jrCountry, into the CSS. Repeat for State and City. Match capitalization exactly.
Assign an order value to every field in a group for a consistent result. Flex layout can affect field widths and spacing. Check the visual order and keyboard navigation after applying the CSS.