Hi,
this easiest way is to achieve this using JS:
- you can add argCategory attribute to ticket form with value "$args.category.sym";
- then on attachment form loads check if parent form is in edit mode, if no you can use argCategory attribute, if yes, you need to fetch value from KEY.category input;
Better way to predefine default repository based on current category and pass it using KEEP array directly to popup with URL from Add attachment button.
Regards,
cdtj