How do we access an input variable in a form and assign it upon creation of record?

I have an input variable called “recordId” with value of Domain of website. My question is, when we create a new form from the interface to add a record to a table, how do we access that record? I noticed when we set up input variables, they only access specific values we give it. How do we avoid this and allow variable to be free to capture the data in the form?

const config = input.config();
const recordId = config[‘recordId’];
console.log(recordId);

For example, let says I have an interface form that allows me to create a record.
Let’s assume the form has: Name, Domain.

When I click submit to create a new record entry, this input variable should have Name, Domain. For some reason, I’m unable to figure this out.