While searching for a solution I found in Wix_data API:
But again this is unclear to me. I assume I could somehow replace the “00001” string with the value of dash_number as typed into the form? Also, in the example given, the results seem to be all COMMENTS?
import wixData from ‘wix-data’;
// …
wixData.get(“myCollection”, “00001”)
.then( (results) => {
let item = results; //see item below
} )
.catch( (err) => {
let errorMsg = err;
} );
/* item is:
*
- {
- “_id”: “00001”,
- “_owner”: “ffdkj9c2-df8g-f9ke-lk98-4kjhfr89keedb”,
- “_createdDate”: “2017-05-24T12:33:18.938Z”,
- “_updatedDate”: “2017-05-24T12:33:18.938Z”,
- “title”: “Mr.”,
- “first_name”: “John”,
- “last_name”: “Doe”
- }
*/