UI Policy Script to display values of a reference parent field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2020 10:08 PM
I am trying to create a UI policy script that will grab the Parent field (references a project) and then displays read only fields below of the project name and description. I am somewhat new to this and running into difficulties trying to define a reference to other fields within my var. Any help would be much appreciated.
This is where I am at so far on my UI policy script. I do understand that the reference dropdown shows me this information, I just want to be able to learn how to do it this way 🙂
function onCondition() {
var x = g_form.getValue('parent');
g_form.setValue('u_prj_short_desc',x);
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 12:01 AM
Because you don't show alot of information about your UI policy setting or your parent reference field information so it's difficult to help but you can try g_form.getDisplayBox('parent').value instead of getValue because as i understand, getValue get the ID of the record, not the display name.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 12:15 AM
Hey Legenis,
Can i ask why are you using UI policy for this Requirement when you can simply use a Reference Qualifier to achieve this functionality and it will work just fine.
Let me know if you want to use Reference Qualifier. I’ll guide you step by step
If you think my comment was helpful for you in anyway then please mark my comment Helpful and Correct.
Thanks and Regards:
Utpal Dutta
DxSherpa Pvt. ltd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 03:57 AM
Hi,
I want to use Reference Qualifer. Could you please guide me. Thanks in Advance