This is nothing Limesurvey can do out of the box. You have the option of create your own plugin, but I don't know if the plugin systems provides you with everything you need to do so.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.