Expand my Community achievements bar.

Add rawValue into a txtbox

Avatar

Level 2

I currently have a working form that I want to add a slight change to for auditing purposes. I have the following code:

function Name(){

var UNFA = xfa.host.response("User:","Auditing purpose only","",0);

          if (UNFA==null || UNFA=="")

          xfa.host.messageBox("Please Enter Name")

 

          else jsLayout.Begin()

endif

}

I just need to get the rawValue that is put into the box into a certain txtbox in my document and if possible insert the date, is this possible?

1 Reply

Avatar

Level 2

The below fixed my problem for getting a name into a box.

function Name(){

var UNFA = xfa.host.response("User:","Auditing purpose only","",0);

          if (UNFA==null || UNFA=="")

          xfa.host.messageBox("Please Enter Name")

 

          else jsLayout.Begin(); topmostSubform.IFFPage3.Page.Body.txtUsername.rawValue = UNFA;

 

endif

}