Hi,
Just want to ask how to show in the input field a specific value. I want to show it once the task is been returned to the user for them to see the initial value and then they will decide whether to retain the value or not. I used java scripting method but it is not working. I don’t know if my javascript below is correct since I dont know the name or id of the input box in bonita. I only use the value I assign as the name of the field and then set the value.
Here is my javascript below:
var bName = $data.request.name;
var bDFname = $data.preparedByUser.firstname + ’ ’ + $data.preparedByUser.lastname;
if(bName.equals(null) || bName.equals(“”))
{
$(‘$data.formInput.bearerName’).val(bDFname);
}
else
{
$(‘$data.formInput.bearerName’).val(bName);
}
Please help thanks.