There are different types of fields in Sage CRM. Well obviously we can change/set the field length as per our convenient and depending upon the data that would be user filling while entering the data.
Suppose we need to change the field length then you need to do refer the below link.
https://www.greytrix.com/blogs/sagecrm/2008/12/29/changing-field-length-of-a-text-field/
Alternate way would be to change the same from SQL by executing the necessary queries.
Can it be done at a runtime? Well, the answer is yes. For example, we can set person private email address field length at run time. To do the same we need to follow the below steps:
- Create a ClientFunctions.js file in the custom pages folder.
- Add the below code in the ClientFunctions.js file.
function setLength()
{
if(document.EntryForm.emai_emailaddressprivate)
{
oEmailPrivate = document.EntryForm.emai_emailaddressprivate;
oEmailPrivate.maxLength = “50”
}
} - Navigate to Administration|Customization|Translations
- Check the Translation inline mode checkbox.
- Go to the Person phone email tab.
- Click on the Email_and add the below code in the US and UK translation of the same.
Email< script language=javascript src=”..\CustomPages\ClientFunctions.js” >
< /script >
< script >
window.attachEvent(“onload”, setLength)
< /script > - Click on the Save button and disable the Inline translation mode.
- Log off Sage CRM.
- Log in again to check the same.
You can do all the above mentioned steps to set length of any field at a runtime.