Announcements
No record found.
Hi,
I am trying to have a pre set text in my multiline text field with a multiple lines.
What is the best way to do so? JScript (example?)?
I know that business rules don't work with multiple lines of text.
Thanks in advance.
Hi HowlingWolf,
I think JScript is the best way because there is no OOB way to do this.
I tested with the description field on the Account entity:
1. Create a JS type web resource and add it to your form. The sample code:
function preSetText(executionContext){ var formContext = executionContext.getFormContext(); var description = formContext.getAttribute("description").getValue(); if(description == null || description == ""){ formContext.getAttribute("description").setValue("This is pre set text."); } }
2.Create an onload event with that library:
3. Save and publish the form.
Result:
Thanks Steve,
Perfect!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 196 Super User 2026 Season 1
11manish 129
CU11031447-0 100