In QGIS Model Builder, I’m using an "enumeration" input that allows the user to select from multiple string values (e.g., "option1", "option2", "option3").
I want to use the selected value from this enumeration input in the Field Calculator to pre-fill a field with a filename, such as "file_option1.geojson".
My goal is:
The user selects a value from the enumeration input. That value is used in a Field Calculator expression to dynamically generate a filename or label.
Questions:
- How can I access the selected enumeration value inside the Field Calculator?
- What is the correct syntax to use this value in an expression?
- Is it necessary to define a variable or use another method to pass the value into the Field Calculator?
