OpenWGA 7.6 - TMLScript reference

TMLForm "tmlform"
Method :

storeInProfile()

On object TMLForm "tmlform"
Usage Stores the form data on the users personalisation profile
Description This method transfers all fields of the WebTML form to items of the users personalisation profile and saves the profile.

This call implicitly triggers the form validation. If validation fails the save is canceled and this method returns false. If saving failed because of some other cause this method throws an error.

If the data source of your form is set to "profile" then you should use the newer method tmlform.store() now.

Return value true if validation succeeded, false otherwise (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent