How to use Button as User Input?

Hello everyone, hope you are good. Here is an example of what I wanted to do:
We have 2 buttons named YES and NO.
If the user press any one of the button, it should be Recorded as YES or NO, on the field item.
I don’t know how to do that since there is no option for that in input.


Also, If you look at the above image, you will see, the fields are greyed out and cannot be selected. Why it is greyed out and if it is not greyed out, can we use it record the input.
Thanks.

$w('#yes').onClick(()=>{
$w('#datasetID').setFieldValue('hasAssets', true ) //if your field is boolean
})
$w('#yes').onClick(()=>{
$w('#datasetID').setFieldValue('Name', 'YES ) //if your field is text
})

Do the same thing for your NO button


// API Reference: https://www.wix.com/velo/reference/api-overview/introduction
// “Hello, World!” Example: https://learn-code.wix.com/en/article/1-hello-world

$w.onReady(function () {

$w('#slide1submit').onClick(()=>{
$w('#dataset1').setFieldValue('Name', 'YES' )
})
 

 
});





// export function slide1submit_click(event) {
//  $w("#dataset1").setFieldValue("hasAssets", "Yes");
//  // This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4
//  // Add your code for this event here: 
// }

export function NoAsset_click(event) {
    $w("#dataset1").setFieldValue("hasAssets", "No");
 // This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4
 // Add your code for this event here: 
}


Hi, Sorry for late reply, I tried to do that. But it isn’t uploading any data on the dataset. It was only blank.