TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > TextBox > Method >

 

SetUserValue

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > TextBox > Method >

 

SetUserValue

 

 

Assigns a user defined value to the user value

 

 

 

Prototype :

 

void SetUserValue

(

       var UserValue

)

 

 

 

Arguments :

 

UserValue

a user defined value

 

 

 

Reference :

 

The value can be either numeric or string.

 

In OnBind, to reference a value set by OnInitialize in the same component, use the user value rather than a global variable.

 

Set the user value at OnInitialize using SetUserValue and get it into OnBind using GetUserValue.

 

 

 

Example :

 

//numeric - create in OnBind event

  This.SetUserValue(1);

 

//string - create in OnBind event

  This.SetUserValue("OZ");

 

 

 

Available Events :

 

All Events