JOVO Web starter, how to access name and date value


#1

Hi,

Not able to access name and date using
const name = this.$inputs?.name.value; // Accessing the value of the ‘name’ entity
const date = this.$inputs?.date?.value; // Accessing the value of the ‘date’ entity

it shows - Property ‘$inputs’ does not exist on type ‘GlobalComponent’. Did you mean ‘$input’?

In Jovo Web starter code i want to access name and date spoked by user.


#2

Hi @Naveen_Pateriya, welcome to the Jovo community!

The example code you provided is Jovo v3 code. In v4, you can access entities with the $entities parameter: https://www.jovo.tech/docs/entities