- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 11:06 AM
On a record producer, we have a reference field that looks at the cmn_location table for Accounts.
On submission, I want to set the short description to:
current.short_description = producer.account: 'Order Number: ' + producer.u_order_number + ' - Postal/Zip Code: ' + producer.u_zip_code;
However, the account name needs to be truncated to 30 characters. How can I achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 12:08 PM
Hi Julia,
If you are already getting the display value for producer.account, you should be able to limit it by using producer.account.substring(0,30); If that gets funky results then producer.account.getDisplayValue().substring(0,30).
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 12:08 PM
Hi Julia,
If you are already getting the display value for producer.account, you should be able to limit it by using producer.account.substring(0,30); If that gets funky results then producer.account.getDisplayValue().substring(0,30).
:{)
Helpful and Correct tags are appreciated and help others to find information faster