Hello,
I am trying to build up an Inventory Number creation script… or at least, a form where some of the values will generate an inventory number in a Function field.
I have a drop down with 4 different values for an employee to put in… for example
- Part
- Structure
- Object
- Value
- Other
I am calling this in the function field however I don't want the word to be generated in the Inventory Number. So if a user selects 'Structure', I would like to have the Function Field show a number instead of the actual value.
At the moment I tried this:
- if (input.Medium=="Structure")
- {
- alert ("Structure Selected");
- Medium = "02";
- }
but what this does is makes the Dropdown select the 'Other' field and inserts 02, which is not what I want… I just want to have the value of Medium change from 'Structure' to '02' on the backend. Any tips? Sorry for the novice questions, new to this scripting language..