Write the following code within the on add -> on validate block of the Script tab. In the following deluge code, the value of the field PatientID is calculated based on the form values specified for the First_Name and Last_Name and the value returned by the variable zoho.currenttime.
on add
{
on validate
{
input.PatientID = input.First_Name + " " + input.Last_Name + " " + zoho.currenttime;
}
}
Write the following code within the on edit -> on validate block of the Script tab. In the following deluge code, the value of the field PatientID is calculated based on the form values specified for the First_Name and Last_Name and the value returned by the variable zoho.currenttime.
on edit
{
on validate
{
input.PatientID = input.First_Name + " " + input.Last_Name + " " + zoho.currenttime;
}
}