KNOWLEDGE BASE

General – Overriding Field Values

On This Page

Overriding Field Values

By default the value set on the CMSFormData and UBo4FormData objects will be printed on their respective forms.  Overriding the value just before printing can be achieved in the BeforePrint event

Example

CMS1500Form cmsForm = new CMS1500Form();
 
cmsForm.BeforePrint += cmsForm_BeforePrint;
 
private void cmsForm_BeforePrint(object sender, FormEventArgs e)
{
    //e.Cells has all fields that will be send to printer.
    //The field properties can be modified
    e.Cells[0].OverriddenValue = “My New Value”;
}

Article Details

Need More Help?

Can't find the answer you are looking for? Our support team can help.