WEC-CSS
asked on
Adobe LiveCycle Designer - how to reference output -
I am running into a road-block when desinging a PDF form. I have a few fields (LastName, FirstName, MiddleInitial) which is used for the user to input his information. I am trying to leverage the user's input as output in another text box (or similar) that would say
(example)
Lastname, MiddleInitial. FirstName agrees to the terms and ackowledges reading the procedures.
(example)
Is this even possible?
Thank you in advance.
(example)
Lastname, MiddleInitial. FirstName agrees to the terms and ackowledges reading the procedures.
(example)
Is this even possible?
Thank you in advance.
ASKER
Hi Dan,
This helps, however i am having a tough time finding where to input the syntax code. Any type of edits i do require me to open up Adobe LiveCycle Designer. I found the selection for the Text Box, under Value tab, and i select 'Calculation Script' but i don't seem to know where to find the place to actually place a script.
I must be confusing how Adobe Reader Pro and Adobe LiveCycle Designer interact.
If i open the file itself inside Adobe Acrobat Pro, the Select Object is grayed out for me. I've removed the security, but still the same result.
Any ideas?
help1.jpg
This helps, however i am having a tough time finding where to input the syntax code. Any type of edits i do require me to open up Adobe LiveCycle Designer. I found the selection for the Text Box, under Value tab, and i select 'Calculation Script' but i don't seem to know where to find the place to actually place a script.
I must be confusing how Adobe Reader Pro and Adobe LiveCycle Designer interact.
If i open the file itself inside Adobe Acrobat Pro, the Select Object is grayed out for me. I've removed the security, but still the same result.
Any ideas?
help1.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Dan. That got me going in the right direction. I ended up using FormCalc:
TextField1.rawValue = UserLastName.rawValue
However i was not able to figure out how to output multiple text values to one text field, i.e.
TextField1.rawValue = UserLastName.rawValue, UserMiddleInitial.rawValue , UserFirstName.rawValue
that did not work, and i cannot use any numerical values (+,-|, etc...). I also tried using space without avail.
I will mark this as accepted solution, however if you get a chance please let me know if you know how to output three different values under one text box.
Thank you.
TextField1.rawValue = UserLastName.rawValue
However i was not able to figure out how to output multiple text values to one text field, i.e.
TextField1.rawValue = UserLastName.rawValue, UserMiddleInitial.rawValue
that did not work, and i cannot use any numerical values (+,-|, etc...). I also tried using space without avail.
I will mark this as accepted solution, however if you get a chance please let me know if you know how to output three different values under one text box.
Thank you.
You can use:
One caveat: it will display "null" on each of the empty fields.
HTH,
Dan
TextField1.rawValue = UserLastName.rawValue.concat(" ", UserMiddleInitial.rawValue, " ", UserFirstName.rawValue)
One caveat: it will display "null" on each of the empty fields.
HTH,
Dan
See here for a nice explanation: http://acrobatusers.com/tutorials/print/how-to-do-not-so-simple-form-calculations
Let me know if you need help with the actual javascript syntax.
It will be something like
Open in new window
HTH,
Dan