Forums

Forums / Developing Portals / Remove form configuration programmatically

Remove form configuration programmatically

2 posts, 1 answered
  1. Missing user
    Missing user avatar
    15 Sep 2020
    Link to this post
    Hello,
    Is it possible to remove a Form Configuration widget programmatically on pre-submit?
    I would like to remove a form configuration from submitting if the text fields within the widget are empty, is this possible?
    The form configuration widget API doesnt look like there is many options.
    We are on build 12.2.7232.0
    Thanks
  2. Omar S
    Omar S avatar
    52 posts
    Registered:
    04 Jul 2019
    Answered
    15 Sep 2020 in reply to Missing user
    Link to this post
    Hi Chris

    Required fields prevent form submission if there are any empty fields. Otherwise, there is no out-of-box functionality to remove the form configuration. I imagine you can achieve that by removing the form configuration from the DOM on the pre-submit, but that is not a good solution to achieve your goal. 

2 posts, 1 answered