In CA Service Catalog 12.7 form designer, I use Look up button field for the user to populate values and I have report data query based on the value to auto populate some other fields.
But sometimes user enter values directly in the lookup field without clicking on the look up button and it affects the auto population of dependent fields.
So do we have any way to stop entering the value directly in the field without clicking on the look up button?
Unfortunately it is not possible to disable the input section of a lookup field. However you could include some validation to ensure the field is defined as expected or you could implement your own lookup functionality similar to what was mentioned in the following thread:
Multiselect with fdDoFieldLookup
Hi Hemalatha S.
In the parameter named 'value', you could enter a 'warning text'.Like e.g. 'Do not enter text here. Click spyglass in stead.'.
Or you could decide to add some kind of 'java script functionality' in the parameter named 'onFocus'.
Kind regards, Louis.
The way I handle it is to call a function in the "onValidate" (e.g. ca_fd.js.ValUserID(_val) to make sure the value is valid whether they used the lookup or typed it in. In the function I use the ca_reportQuery to call a report object.