This workaround will allow you to hide the second input of a lookup option.
Hiding the second input allows you to collect a single value from a user and use the advanced styles of a lookup option.
It also allows you to deal with measurements that required 3 dimensions where you need a 3rd input but not a 4th.

- Create a Lookup Option that you want to hide the second input for. (example: depthoption )
- General Lookup Option Settings
- Give the lookup option a CSS Class Name. (example: depthinput)
- Check Hide Display Name. Optional
- Check Hide Name & Price.This will hide the values for input 1 and input 2 from showing beside the option.
- Input 1 Settings
- Configure input 1 as any type you want.
- Configure input 1 as any type you want.
- Input 2 Settings
- Configure input 2 as a dropdown type.
- ADD a single option for the input 2 dropdown.
- Set input 2 option name to anything you want, it will be hidden.
- Set input 2 option value as 1. This value does not entirely matter but it will be used in the lookup table to find a value for this lookup option. It matters only that you give it a value, within the range for input 2 of the lookup table associated with the lookup option.
- Check input 2 option added above to be the default value. Setting the default value here will allow the lookup option to pass validation checks while it is hidden.
- Pro Tip: The configuration above will require a pricing table with few rows and many columns. If you want a lookup table that uses a few columns and many rows, switch the instructions above for input 1 and input 2.
- General Lookup Option Settings
- Setup the Option Set
- Complete standard Option Set configuration and the following:
- Add the option created above to the option list.
- Go to Styles tab, scroll to bottom of page and add the following scripts to the Custom CSS section:
Hides lookup option input 2
– where length is the CSS Class name given to the lookup option.depthinput > div:nth-child(3) {
display: none;
}
(Optional) Hide the horizontal rule that appears underneath an option. You might want to do this if you want your one lookup option to appear like it is associated with an option above it. Example: In the image above, you might want to hide the horizontal rule that normally appears under width and length option and above the Depth option.
– where lengthwidth is a CSS class name given to the option you want to hide the horizontal rule for..lengthwidth .containerSeparator {
display:none;
}
- Complete standard Option Set configuration and the following:
Calculations
The hidden input will always have a constant value. When using the lookup option in a calculation, you typically will use the value associated with the none hidden input using
depthoption.input1 => This will contain the user input value
depthoption.input2 => This will contain the constant default value given during configuration.
depthoption => This will contain the value obtained form the associated pricing table.