read-only textbox

Hello Siti,

Make sure when displaying it in the read only textbox you set the .value not the .text of the element.
However, you can submit using code instead of on click as follows:

let toInsert = {
      “feildName” : #w(‘#inputValue’).value();   
};
wixData.insert("myCollection", toInsert)
.then( (results) => {
let item = results; //see item below
} )
.catch( (err) => {
let errorMsg = err;
} );

Check this link for further information: http://www.wix.com/code/reference/wix-data.html#insert

Massa