using the same interface for creation and update

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

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer

    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.