How to prevent user from tying in a reference field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 12:55 AM - edited 10-11-2024 01:54 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 01:14 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 01:33 AM - edited 10-11-2024 01:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 01:22 AM - edited 10-10-2024 01:24 AM
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.
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 01:38 AM - edited 10-11-2024 01:38 AM
Hi Akash4,
Thank you so much for your reply.