-
2,330 Points
Posted 5 years ago
Matt Sones, Champion
-
32,500 Points
We use a table on the Attachment Object just below the file upload component, with a "description" column. When the user uploads a file, it shows up as the first row in the table, and the description can be edited.
Pat Vachon, Champion
-
45,310 Points
Matt Sones, Champion
-
32,500 Points
But why do you need two models?
Pat Vachon, Champion
-
45,310 Points
Matt Sones, Champion
-
32,500 Points
Can users edit the data that templates pull in with merge syntax? I thought that was possible. If so, could you use a template with {{$Model.Attachments.data.0.Description}} instead of two models and a field editor?
Probably more complicated than it's worth.
-
2,330 Points
Matt Sones, Champion
-
32,500 Points
Pat is describing an action on the attachment model, not the file upload component.
You should have two models on your page (or three, with Pat's method). One on the object that has the record you are attaching to; and one (or two) on the Attachments Object, with a condition linking it to the first model.
Makes sense?
-
2,330 Points
Pat Vachon, Champion
-
45,310 Points
Pat Vachon, Champion
-
45,310 Points
-
2,330 Points
The list with skuid is easy but there needs to be a way to upload a file with the description not just the file.
Rob Hatch, Official Rep
-
44,988 Points
Matt Sones, Champion
-
32,500 Points
I really think Skuid can do what you're asking. We've done it. If you're happy with your visualforce solution, that's great. If you want a complete sample/description, let me know.
Pat Vachon, Champion
-
45,310 Points
-
2,330 Points
Matt Sones, Champion
-
32,500 Points
I will mention that this 'patient' is completely fictional. We're not violating anyone's privacy.
Rob Hatch, Official Rep
-
44,988 Points
Matt Sones, Champion
-
32,500 Points
Matt Sones, Champion
-
32,500 Points
Any movement on this?
I'd love to see the model on the Attachments object be able to trigger actions in the action framework upon creation of a new row.
Rob Hatch, Official Rep
-
44,988 Points
- 70 Points
For community users, the attachment description or filename is not getting updated while using the file upload component.
Can you help me fix this issue?
-
92 Points
Anna Wiersema, Official Rep
-
10,994 Points
- 70 Points
Can someone help me fix this issue or confirm if its a bug?
@Rob Hatch