Jump to content

Set Pop-up menu field(value list w/ second values) with script


This topic is 4342 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hey everyone,

I feel like there should be an easy answer to this question but I have yet to find it. I want to change the value of a Pop-up menu field using a script. That is easy enough. The problem is that the pop-up menu value list contains two values with only the second showing. The first is a record id and the second is the name of that record. So, when you select the pop-up menu you get a list of names. When you select the name it actually fills in the field with record ID, but you still see the name. However, when I set the field using a script it shows the record ID instead. Does anyone know how to fix this? I have tried refreshing the record

I have also used two fields, where one is a dropdown list with the rec ids and the other is on top of that with the related value. That way rec id is hidden behind the related field, but this tends to get clunky when you select it and requires a relationship where you might not need it otherwise. Thanks for your help.

Link to comment
Share on other sites

  • 2 weeks later...

To clarify: your goal is to have a pop-up field show the related value instead of the numeric ID, when you set it's value with a script?

I think your problem is either...

- the value you are setting to the pop-up field is not valid for the relationship (check leading/trailing spaces)

- you need to commit the record for the change to take effect

Link to comment
Share on other sites

This topic is 4342 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.