php - Set the default value for a module field in SugarCRM -


i have module named cases in sugarcrm environment has several fields name, id, account_name, date_created, description , on, , 1 custom field named custom_account_number.

i want set value 1 of account_name field, how can using custom php script in custom folder?

if using sugar 7.2 , simple,

1. go admin->studio->modulename->fields->select custom field.
2. check calculated value click on edit formula .
3. fields select name field.
4. deploy it.

now go module , save name appear on custom field also.

i did not work on community edition can give idea , have write logic hook after save , in hook can write logic copy name custom field.

for more info logic hook click here ...


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -