Logic hook to make text field to default

Hi everyone,

I want to have ā€˜Nameā€™ text field default to ā€˜BLANKā€™ when the record is first created.

Currently, the text field defaults to whoever creates the record.

I tried following in custom\Extension\modules\Agreement\Ext\Layoutdefs_override_Agreement.php,

$dictionary[ā€œAgreementā€][ā€œfieldsā€][ā€œuser_nameā€][ā€œdefaultā€] = ā€˜ā€™;

But no luck.

I found out that I can do this using a logic hook. But I donā€™t know how to do it as Iā€™m new to suiteCRM and coding.

Can anyone help me to resolve this?

Thanks

Take a look into this tutorial. Is for SugarCRM but it applies to SuiteCRM as well:

Thanks,

AlxGr

1 Like