05-14-2019, 02:15 PM
I would like to hide some fields when creating a record, that are not specifically hidden or inaccessible, but I would like to hide them ONLY when creating records. Do we even have that functionality?
(05-16-2019, 10:15 PM)joebordes Wrote: [ -> ]I would say that this can be done with a field dependency map. The condition would be based on the getCRUDMode function to detect if you are creating/editing and hide the field accordingly
https://corebos.com/documentation/doku.php?id=en:adminmanual:businessmappings:field_dependency
(05-27-2019, 12:22 PM)Guido1982 Wrote: [ -> ](05-16-2019, 10:15 PM)joebordes Wrote: [ -> ]I would say that this can be done with a field dependency map. The condition would be based on the getCRUDMode function to detect if you are creating/editing and hide the field accordingly
https://corebos.com/documentation/doku.php?id=en:adminmanual:businessmappings:field_dependency
I've been reading the docs, but can't understand how I should format the condition so that the map kicks in when I am creating an asset, regardless of the source module, if any. Could you get me started on that?
<map>
<originmodule>
<originname>Assets</originname>
</originmodule>
<dependencies>
<dependency>
<field>asset_no</field>
<condition>
[{
"groupid": "",
"columnname": "vtiger_assets:assetname:assetname:Assets_Asset_Name:V",
"comparator" : "e",
"value": "",
"columncondition": ""
}]
</condition>
<actions>
<hide>
<field>cf_1440</field>
</hide>
</actions>
</dependency>
</dependencies>
</map>