Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / formGroup.markAsPristine() Does not seem to work with igx inputs

formGroup.markAsPristine() Does not seem to work with igx inputs

New Discussion
Brandon Vaughn
Brandon Vaughn asked on Jun 13, 2019 4:37 PM

Hi Everybody! I’m struggling to figure out how to reset the state of a form after user submission. In Angular Reactive Forms, you are able to reset the form and call markAsPristine() to set the form back to its untouched state. Does ignite-ui have anything similar or has anybody else ran into this problem? I’ve looked through the documentation with no success.

Sign In to post a reply

Replies

  • 0
    Hristo Popov
    Hristo Popov answered on Jun 13, 2019 4:37 PM

    Hi Brandon,

    Using  Anguar's FormGroup to reset a form consisted of our controls will work the way you want.

    Here is a StackBlitz sample for your reference, based on this scenario.

    Please, let me know if you have any questions!

    Best regards,

    Hristo Popov

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Brandon Vaughn
Favorites
0
Replies
1
Created On
Jun 13, 2019
Last Post
6 years, 8 months ago

Suggested Discussions

Created by

Created on

Jun 13, 2019 4:37 PM

Last activity on

Feb 12, 2026 8:10 AM