Hello Community,
In this article it is described on how to deal with selection windows crt.OpenSelectionWindowRequest. https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/8.1/platform-customization/freedom-ui/selection-window/overview
but no information at all about predefined values.
Is there any possibilty that when clicking 'NEW' there are some predefined default values?
Example
The Account type is set to 'Our Company'
Thank you,
Sasori
Like
Hello,
You don't need to use programming for this task.
You need to create an object replacement (in your example, an Account object replacement), in which you can set the default value for the corresponding columns, save the changes, and publish the object.
After that, when you open the pages of creating records, you will see the fields immediately filled with the default values.
These links can also be useful for you to find more options for achieving your goal:
https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/development-tools/creatio-ide/configuration-elements/object
https://community.creatio.com/questions/it-possible-set-default-value-f…
Thank you.
Hello Serhii,
Thank you for the reply.
1) We can not utilize the generic default value, becasue depending on the conditions the Type, might have differnetvalues.
2) Our frontend logic is associated with OpenSelectionWindowRequest. In the documentation of OpenSelectionWindowRequest there is no documentation for default values.
Is there any workaround to achieve this?
Sasor
If you need to use a value based on one of the fields of an object, it is fashionable to use business rules at the object level, which, depending on the value in one field, will set the value for another field using the “Set values” option.