how to give dummy values to formio form

后端 未结 1 762
Happy的楠姐
Happy的楠姐 2020-12-22 07:44

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

相关标签:
1条回答
  • 2020-12-22 08:02

    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 :)

    0 讨论(0)
提交回复
热议问题