How to prevent user from tying in a reference field?

Yu_G
Tera Contributor

Hi everyone,

 

Is there a way to prevent users from typing in a reference field?

Only searching by using the lookup icon is allowed.

 

The details are as follows

Am facing a bug that 

a string of number is expected to be put into use (appear on the list after clicking the lookup icon) only when it has been approved.

However, if user directedly types the string of number in the field, it can also be used even it has not been manually approved yet. To solve the problem, am thinking about adding a function to prevent users from directly typing in the reference filed, to make sure they can only use the look up icon to find the number that they are allowed to choose.

 

Thank you very much.

4 REPLIES 4

amaradiswamy
Kilo Sage

Hi @Yu_G 

What is the issue you are facing with the ability to type in reference field? There is no OOB way to achieve this I guess, may be DOM technique works but it should be the last resort. I recommend to think of business value when we have to do a customization or implement something which is not as per recommended best practices

Hi amaradiswamy,

Thank you for your reply.

I have updated some details. Would you mind checking the post above again? 

If you have any good ideas please feel free to contact.

Thank you very much.

Akash4
Kilo Sage
Kilo Sage

You can try adding an Attribute in Dictionary -  ref_ac_columns_search=false

If this attribute “ref_auto_completer” already exists, then assign unavailable value like “AJAXtest”

But also make sure, ref_ac_columns=<displayingFieldName> to make sure field value is visible after selecting from Lookup search icon.

 

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.

Yu_G
Tera Contributor

Hi Akash4,

Thank you so much for your reply.

I have tried adding the attribute but it did not work out.
By the way, I have updated some details, it would be generous of you to check it up.
If you have any good ideas plz feel free to contact.
Thank you very much.