I have created a username and password with submit button page using formio
and I have shown in the page by taking that script from the database. the pa
Yes, we can achieve this in component level even.
change your html as below
<formio [form]="obj" [submission]="submission"/>
add the following in your component
submission: any;
showData () {
this.submission = {
data: {
userName: 'Joe',
password: 'Smith'
}
};
}
it should display the data in page.
Happy coding :)