Prevent update of DB from user input form and output image

Dear Wix code experts,

I’m new to Wix coding and having this urgent issues on my Wix code. Really appreciate you help and guidance.

When user enter in user input form, it get updated in DB (refer to screenshots). How to prevent this in the Wix code?

Also any better coding to search several input fields and display the output as a big image in the container (rather than a “list” in my code)?

Thank you for your help.

My coding is:

import wixData from ‘wix-data’;

// For full API documentation, including code examples, visit Velo API Reference - Wix.com

$w.onReady(function () {
//TODO: import wixData from ‘wix-data’;
});

export function searchButton_onClick(event) {
wixData.query(‘WixRunningEventsDB’)
.contains(‘bibNumber’, $w(‘#input2’).value)
.find()
.then(res => {
$w(‘#table1’).rows = res.items;
});
}

Hi,

Regarding the first issue:
Do you have a Dataset connection? if so, please try changing the mode to be ‘Read Only’.

Second issue:
The only two elements that can deal with a dynamic number of items are Lists and Table.
I think that list is the better option here.

Liran.

Thank you Liran for taking the time to help me out. Really appreciated.

I think you might be right. Will go and try it out.

Have a great weekend mate. Cheers