You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Feature Request: Match DB Lookups using Value instead of Choice

posted on December 14, 2020

I'm doing a database lookup on a dropdown and I would like what shows up in the form to be more user friendly than what is displayed in the database.  So for example, in my database entries I might have a Location column with information like "Site1", "Site2", "Site3", etc., which isn't very helpful for the person filling out the form.

I have a dropdown where the Choices list the friendlier location names (e.g. "Providence", "Seattle", "Houston", etc.), but have the site numbers that match the database in the Values field.  But when I perform a lookup for an asset in Seattle for example, the dropdown selection just changes to "Site2" on the form.

I came across this forum thread where it sounds like the opposite situation works; if I selected "Providence" in the dropdown and that triggered a database lookup then it would match the Site1 dropdown value with the Site1 database value, but it would be helpful to have an option to perform the opposite value based lookup.

https://answers.laserfiche.com/questions/64493/Clarification-When-Matching-a-DropDown-Field-to-Database-Column

1 0
replied on December 14, 2020

The easiest way to address this would be to either

1. Add the friendly name to the database so the lookup could return that as well. You could return both if you need both "Site 2" and "Houston". 

2. Fill a hidden field with the lookup result and then use a calculation to determine the friendly name. Fill a hidden field with "Site 2", then have a shown field with the calculation =if(HiddenField="Site 1", "Seattle",if(HiddenField="Site 2","Houston",...)

You would put a condition for each potential value of the hidden field. 

0 0
replied on December 14, 2020

Thanks, I was just pointing out that it would be a nice feature to include natively.

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.