I am trying to create one "note/hidden" field called "Report" that will combine or concat multiple inputs/calculations if selected or true.
I'm not sure if/where I need "if", "if selected", "selected", "and", "or" statements. Sometimes the form error returns missing brackets, sometimes I need another argument. I've tried various combinations and tested individual lines of calculations and it's fine, it's the combining of them I still can't get it right. I also want to try and simplify/condense this mess of arguments if I can.
if true:
${route_id}, if(selected(${select_format}, 'Excel'), ' xls', '')
or if true:
${station_id}, concat(${station_id},' stat '), if(selected(${select_format}, 'Excel'), ' xls', '')
or if true:
${congestion}, concat(${congestion},' con '), if(selected(${select_format}, 'Excel'), ' xls', ''), if(${request_year})
Note: Depending on whether Route id, Station id, Congestion is true (only one can be selected), the option to select Excel format will be available for all. Station id and Congestion will have a concat (respectively either stat, con). And only Congestion will have an option to input Year.