# Connecting slideshow input elements to database creating multiple lines

**URL:** <https://forum.wixstudio.com/t/connecting-slideshow-input-elements-to-database-creating-multiple-lines/4100>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [April 10, 2021, 7:28pm UTC](https://forum.wixstudio.com/t/connecting-slideshow-input-elements-to-database-creating-multiple-lines/4100 "2021-04-10T19:28:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frozzentech](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@frozzentech](https://forum.wixstudio.com/u/frozzentech)\
**Post date:** [April 10, 2021, 7:28pm UTC](https://forum.wixstudio.com/t/connecting-slideshow-input-elements-to-database-creating-multiple-lines/4100/1 "2021-04-10T19:28:13Z")

</div>

Hello,  
I’ve created a form using a slideshow and have all the elements connected to the right database, however the data is being entered on new lines for each slide. I’ve found a workaround that involves adding backend code to “merge” the two lines into one. It doesn’t seem like a practical solution…

I was wondering if I should use the session API to create a session token? Or is there an easier way to keep the users information together?

Thanks!

This is an example of a slide’s code:

export function nextSlide2\_click(event) {  
**let** slide2data = {  
“busDesc” : $w( ‘#busDesc’ ).value,  
“fullTime” : $w( ‘#fullTime’ ).value,  
“partTime” : $w( ‘#partTime’ ).value,  
“yearsOperating” : $w( ‘#yearsInBusiness’ ).value,  
“businessCategory” : $w( ‘#businessCatagory’ ).value,  
“keywords” : $w( ‘#keywords’ ).value  
}  
wixData.insert( ‘MemberRegistration’ , slide2data)  
.then((results) =\> {  
**let** item = results;  
})  
. **catch** ((err) =\> {  
**let** errorMsg = err;  
});  
$w( ‘#slideshow1’ ).changeSlide( 2 )  
}

---

<div class="post-metadata">

**Author:** ![frozzentech](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@frozzentech](https://forum.wixstudio.com/u/frozzentech)\
**Post date:** [April 23, 2021, 9:02pm UTC](https://forum.wixstudio.com/t/connecting-slideshow-input-elements-to-database-creating-multiple-lines/4100/2 "2021-04-23T21:02:49Z")

</div>

Anyone?
