Skip to main content
14 events
when toggle format what by license comment
Mar 11, 2016 at 10:26 vote accept Lenny
Mar 11, 2016 at 10:08 comment added oksana-c Let us continue this discussion in chat.
Mar 11, 2016 at 10:03 comment added Lenny So I've got the loop working – but not when I set the [file_item] to [file-n:file:name], that gives no output at all. If I use some random string like "uploaded stuff" it at least outputs the correct number of values in relation to the number of files uploaded. So the final thing for me to figure out is why your solution doesn't output the filenames since it is able to loop through them a correct amount of times. I'll investigate further, if you have any pointers let me know. http://i.imgur.com/B11VuBJ.png
Mar 10, 2016 at 15:12 comment added Lenny Awesome, will try the updated steps then. It's my first time working with rules so I really appreciate your help here.
Mar 10, 2016 at 14:12 comment added oksana-c I updated the answer. Follow those steps now. Had to set another variable in order for the file names to be picked up and fix some value references. I provided an idea for the action at first, that really had to be expanded upon. Such things are not easy to describe precisely step by step without having a test application.
Mar 10, 2016 at 14:09 history edited oksana-c CC BY-SA 3.0
added 330 characters in body
Mar 10, 2016 at 13:58 comment added Lenny I can see [file-list:value] in replacement patterns, but that doesn't work either.
Mar 10, 2016 at 13:33 comment added Lenny Alright that fixed the field problem, but the mail only outputs [file_list] so I'm still missing something... any idea? http://i.imgur.com/wtupHOD.png
Mar 10, 2016 at 13:13 comment added oksana-c your rule does not see the file field. Add a condition "Entity has field" and select your file field to expose it to the rule
Mar 10, 2016 at 13:09 comment added Lenny Did that, but it still says Error: Data selector entity:field-uppladdarfaltet for parameter list is invalid. I barely have anything to choose from in the list of data selectors, don't know if that is of importance? http://i.imgur.com/nTs8d8X.png
Mar 10, 2016 at 13:03 comment added oksana-c yes, but remove the double bracket - [[entity:field-uppladdarfaltet]] => [entity:field-uppladdarfaltet]
Mar 10, 2016 at 12:58 comment added Lenny I must be doing something wrong, I can't seem to be able to add a loop for [entity:field-uppladdarfaltet], did you mean like this? http://i.imgur.com/QeLq5Id.png
Mar 10, 2016 at 10:58 comment added Lenny Alright I'll have a go at it and see if I can get it up and running.
Mar 10, 2016 at 10:48 history answered oksana-c CC BY-SA 3.0