How Auto populate country name in child locations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 06:30 AM - edited 08-09-2023 06:43 AM
Hello Experts,
In locations(cmn_location) table if location type(dropdown) = country than the name must be copied to the Country(string) attribute, including all Child records.
before update and insert business rule is working for me but i want onload client script
How to achieve this by using onload client script.
Thanks in advance,
Best Regards,
Nani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 06:58 AM
Hello,
@Ankur Bawiskar is right, there is no point running Client Script onLoad() on location form. It will not save the data on the child location table as well.
And everytime you open the record the Client Script will run.
Better you can use Display BR, so first time each record is opened, it will calculate and save the value on the record.
Kind Regards,
Swarnadeep Nandy