Skip to main content
August 24, 2021
Question

using the same interface for creation and update

  • August 24, 2021
  • 1 reply
  • 0 views
Hi,
Please suggest me.
i am using the same interface for creation and update.so when i was in creation my values r storing from local variable to rule input by submitting the button, but i don't want the same in when i am doing update. I want to save the rule input values into the CDT. i tried using the update function.
Thank you

    1 reply

    davel001150
    August 24, 2021

    You need to create a rule input that stores whether you're creating or updating.  You'll define that value in your process / processes before you load it into the form.  You use showWhen parameters throughout your form, as well as disabled parameters throughout your form to control how all the components behave, and you wrap two sets of save functionality on your Submit button with an if().  If isCreate is true, do the create set of save functionality, otherwise do the edit set of save functionality.