Skip to main content
Known Participant
Jun 12, 2023 9:44 AM UTC
Question

In related actions ,after submitting the form ,the details are not updated in db

In related action , after submitting a form ,the form must gets closed and it must enter details in db  but after submitting the form it is not updating the details in db and the form is not getting closed 
can someone please with this

    14 replies

    harshitb6843
    Brainy
    Jun 12, 2023 9:46 AM UTC

    Set the 'submit: true' in your button widget. Should work!

    sabat0002Author
    Known Participant
    Jun 12, 2023 9:53 AM UTC

    it is already set to true

    harshitb6843
    Brainy
    Jun 12, 2023 9:57 AM UTC

    Can you please attach the interface code, and process screenshot for more info?

    mathieud0001
    Genius
    Jun 12, 2023 10:49 AM UTC

    A couple of issues:

    - You seem to be saving most of the data in a local variable. In the end, you save it in the test_requests rule input which I am unsure what you are doing with. I would suggest that you save the form fields directly in the rule inputs for simplicity's sake. Otherwise, you can load the data in a local variable, save the form fields in the local variable and then save the contents of the local variable back into the rule input on the submit. You'll also have to change your local!getdata to a refreshVariable with refreshAfter set to RECORD_ACTION.

    - You also don't seem to be writing anything in the database in your process.