How to save multiple values when pressing the submit button?

Hi Everyone,

 

I started recently using Appian and I was wondering if it is possible to save multiple values into their respective cdt's in a form when clicking the submit button. For example, when using the following code I am able to save the loggedInUser() value in a cdt.

primaryButtons: {
      a!buttonWidget(
        label: "Submit",
        submit: true,
        style: "PRIMARY",
        value: loggedInUser(),
        saveInto: ri!cdt.typetext
      )
    }

 

However, I would also like to save the now() value in another cdt while using the same button. Does anybody know the function that I have to use in order to accomplish this? 

  Discussion posts and replies are publicly visible