Hallo Community,
we added Flex-Related Field on Opportunity-Modul.
We want to set this Field as, Required.
But when we do so, Opportunity can not be Saved, even if Relation ist set.
It looks like the value in the parent_name field is not recognized.
As a workaround, we tried to store the validation in the vardef file and set the field as not required.
Unfortunately the same effect.
<?php
// created: 2024-12-04 14:50:4
// 4
//
$dictionary['Opportunity']['fields']['parent_name']['logic']['required']['key'] = 'required';
$dictionary['Opportunity']['fields']['parent_name']['logic']['required']['modes'] = array('edit', 'create');
$dictionary['Opportunity']['fields']['parent_name']['logic']['required']['params'] = array (
'fieldDependencies' => [
'parent_name'
],
'activeOnFields' => [
'parent_name' => [['operator' => 'is-empty' ]],
],
);
?>
After saving with empty parent_name field and edit again, the validation works.
Ideas about that?