on 2023 Oct 27 6:17 PM
Hello Team.
Do I have a chance to hide one field of an object based on the value of another field in this object (Object Definition)?
For example. In one object I have one custom field cust_YesNo (with values Yes and No) and another cust_additionalinfor (string with additional text).
Field cust_additionalinfor must be hidden for a user if the field cust_YesNo has value No and must appear and open for input in case value No.
I tried to use Condition for the field but this case is possible only with another object (not for itself).
Any suggestion will be highly appriciated.
Thanks!
Request clarification before answering.
You'd normally setup a config ui for an object and then use the rules in that config ui to determine (onchange) if a field should be visible or not. I wouldn't do that with normal rules.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer.
Yes, in some cases I used UI for hiding fields but in this case the object is Employee Time. I created UI screen and assigned it via the Object Definition as the Default Screen but nothing changed. I directly hid a field and changed places a few of them in custom UI but I see the picture as before changes.
I would appreciate it if you could point out my mistakes.
Thanks.
That is quite important info, because for employee time neither the config UI, nor the business rule will be of much help. The way to deal with that (on the employee time object is only via adding new fields and by setting a condition (which is basically always the time type and then setting which ones it should show up with). An example of such config can be found for the field attachment (common one) and the 5 time types for which it is allowed to show (this will change the visibility dependent on what time type you choose):
Thanks again.
Yes, I used successfully Condition for hiding or showing additional fields depending on the time type. In the case described before, a customer wants to add a few custom fields in time type Business trip and hides some fields based on a value in another field.
For example: if the field custom_1 has the value Abroad user has to see the additional field custom_2 (Visa required?) to select the value Yes or No (picklist). If the field custom_1 has another value (not Abroad) field custom_2 must be hidden.
Section Condition isn't help for this. Exept only that separate one time type Business trip in 2 for Abroad and Not Abroad) but unfortunately, the customer has more than one condition with fields.
User | Count |
---|---|
9 | |
4 | |
3 | |
3 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.