Dynamic Attachment based on choices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago - last edited 5 hours ago
Hello people
I have a requirement to show 'Downloadable' template file under a field on a catalog form. The catch is, this file will change based on the selection or combination of selections made on two fields of type 'SelectBox'.
Variable1 has 4 choices, Variable2 has1 choices.
Example Scenario:
Variable1 -> Option A selected
Variable2 -> Option 1 selected.
So, on basis of this, respective file template should be shown under 'Upload Template'(Type is attachment). User can click on the template and get the template downloaded.
Unser Annotation of 'Upload Template' we have 'Insert/edit Link' but it remains static. We need the link to change.
I tried few ways but nothing seems to work as required.
Any idea on how to crack this? Would be helpful! 🙂
Appreciate your time and effort.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I'm not following why you have an attachment type variable if a file will not be attached to the request - you could try using a label. In any case, I would create a variable for each file template. Use an onChange Catalog Client script when variable 1 changes to determine which variable is displayed. Once that's working, copy it to do the same when variable 2 changes - unless this variable will always only have 1 choice, then it's not really needed.