Dependent & Required Fields

I have over 200 fields which may or may not be in my layout.
Some of them may be required.

I am having trouble saving out of a record because i'm missing a required field, however, i'm not sure which one it is (because it must not be placed in that particular dropdown based layout)

How can i quickly/at a glance/ look at all of my fields and see which ones are required (without going into them 1x1)

Parents
  • I don't know of an easy way to do that in Studio.

    Off the top of my head, if I needed to do that I would look in the cache folder at that module's vardefs (for example

    cache/modules/Leads/Leadvardefs.php ) and search for

    'required' => true

    Not the most efficient way, but it's one way....


    You can get the same information via API using the metadata, for example:

    rest/v11/metadata?type_filter=modules&module_filter=Leads


    But both those require searching and digging for the required true.


    Finally, the option I would probably choose if I had that many fields to check would be to w
    rite a quick script:

    get the bean in question and output the required fields to the log:

    $GLOBALS['log']->fatal($bean->required_fields);

    None of these are "easy" solutions, maybe someone else will have better ideas...

    FrancescaS

Reply
  • I don't know of an easy way to do that in Studio.

    Off the top of my head, if I needed to do that I would look in the cache folder at that module's vardefs (for example

    cache/modules/Leads/Leadvardefs.php ) and search for

    'required' => true

    Not the most efficient way, but it's one way....


    You can get the same information via API using the metadata, for example:

    rest/v11/metadata?type_filter=modules&module_filter=Leads


    But both those require searching and digging for the required true.


    Finally, the option I would probably choose if I had that many fields to check would be to w
    rite a quick script:

    get the bean in question and output the required fields to the log:

    $GLOBALS['log']->fatal($bean->required_fields);

    None of these are "easy" solutions, maybe someone else will have better ideas...

    FrancescaS

Children
No Data