Custom Calculation to populate field with abbreviation
Hi Everyone,
I have a form that creates a project name based off of selected values in a series of dropdowns.
For example,
Dropdown 1 has the values Maryland, Virginia, Pennsylvania and Deleware
Dropdown 2 has the values Architecture, Engineering, Construction Management
Dropdown 3 has the values New Build, Modification, Demolition
when selected, the selections form a project name, ex. Maryland - Construction Management - New Build in read only fields.
Because of the way I wrote the validation, the values in Dropdown 2 and 3 are dependent on the selected value in Dropdown 1.
What I am trying to do is create the project name with an abbreviation of the selection from the dropdown. So when you select "Construction Management", it populates "CM" and when you select "Demolition" it populates "DEMO", etc. I am not able to adjust the export value in the Options tab since the selections are completely based off of a switch validation script I have built into the State dropdown.
I am using the below custom calculation to pull the data from the dropdowns into the project name
event.value = this.getField("Dropdown2").valueAsString;
How can I add a formula that pulls the data from the dropdown (ex. Construction Management) but outputs it as "CM"?
Thank you in advance, I am a newbie to this.
