You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added 2 custom fields to Settings by the followings:
private static $db = array(
'Latitude' => 'Decimal',
'Longitude' => 'Decimal'
);
public function updateCMSFields(FieldList $fields) {
$fields->addFieldToTab("Root.Main", new NumericField("Latitude", "Latitude"));
$fields->addFieldToTab("Root.Main", new NumericField("Longitude", "Longitude"));
}
Everything seems ok until I input string such as "abc" into these two fields (instead of numeric values). Back office shows "validation errors" right after that. This is right. But it displays the setting form unexpectedly.
Seems that there is a problem with ui-tab. Below is how it looks before validation:
Note that I did not make any changes except adding the two fields.
Did I miss anything?
The text was updated successfully, but these errors were encountered:
Hi there,
I added 2 custom fields to Settings by the followings:
private static $db = array(
'Latitude' => 'Decimal',
'Longitude' => 'Decimal'
);
public function updateCMSFields(FieldList $fields) {
$fields->addFieldToTab("Root.Main", new NumericField("Latitude", "Latitude"));
$fields->addFieldToTab("Root.Main", new NumericField("Longitude", "Longitude"));
}
Everything seems ok until I input string such as "abc" into these two fields (instead of numeric values). Back office shows "validation errors" right after that. This is right. But it displays the setting form unexpectedly.
Seems that there is a problem with ui-tab. Below is how it looks before validation:
Note that I did not make any changes except adding the two fields.
Did I miss anything?
The text was updated successfully, but these errors were encountered: