Hello,
Is there manager or service in Angular which I could use to set fields required/visible based on values of other fields?
Basically service that I could use to achieve what’s mentioned in custom field logic documentation: Adding Custom Field Logic :: SuiteCRM Documentation
@Sacrilegious
I think you need to clarify what you are trying to achieve there, the docs you point at configure the fields so that the Angular code does just that (ie the php sets up the configuration and the Angular enforces it).
Kind regards
Mark
One thing I’m having issues with is “currency” type field. I want to conditionally set it to required but the “logic” parameters in vardefs are not working while 1:1 setup on text fields are working.
I also had issues with making fields visible and required on certain conditions. So I was wondering if maybe there’s a way to control the conditional logic with Angular since it would possibly give me more control over the logic I need to implement.
From what I remember currency fields are a special field (ie there is a currency drop down and a value all included), the logic stuff only works on normal individual fields as you say.
You could combine the two systems (so specific for currency) add a new Angular action (the show/hide is an angular action), so add a currency show/hide that’s specific to a currency field that when the conditions set in the php config are set (with the new action) performs the search for the correct field(s) and shows/hides them.
probably not quite what you are looking for but you can trigger the show/hide manually in angular, but it will need coding to achieve.
Mark