Hi Lior,
Thanks for getting back to me. I will try to explain my problem again in some more detail. From the picture below, I’m trying to achieve when the user checks, 1:1 it shows £400 for the course, if they select 1:2 it will show £460 (this element is actually hidden, but I have shown it here for reference. I have the code below which works.

function privateCheckbox () {
for (let i = 3; i < 5; i++) {
$w(`#checkbox${i}`).onChange(() => {
const checkBoxes = ['checkbox3', 'checkbox4'];
let filtered = checkBoxes.filter(item => item !== `checkbox${i}`);
filtered.forEach((checkbox) => {
$w(`#${checkbox}`).checked = false;
});
if ($w('#checkbox3').checked) {
$w('#pricePrivate1to1').show(), $w('#pricePrivate1to2').hide();
}
if ($w('#checkbox4').checked) {
$w('#pricePrivate1to1').hide(), $w('#pricePrivate1to2').show();
}
});
}
}
But I would like to extract the information straight from the database without using two separate boxes that are connected to the database through the ‘Connect to Data’ icon

The reason for this is to be able to setItem for the value of this text box ‘pricePrivate1to1’ to the payment screen. I hope this makes things a little more clear, but let me know if you need anything else to clarify.
Thank you for your help, Stephen