IBM
LOT-410 · Question #17
Which is the correct way to compute a client-side JavaScript variable fullName from two fields on a datasource firstName and lastName?
The correct answer is D. var fullname = "#{javascript:document1.getItemValueString('firstName') + ' '. See the full explanation below for the reasoning.
Question
Which is the correct way to compute a client-side JavaScript variable fullName from two fields on a datasource firstName and lastName?
Options
- Avar fullname = "#{javascript:document1.firstName + ' ' + document1.lastName;}";
- Bvar fullname = "#{javascript:document1.getDocument().firstName + ' ' + document1.getDocument().lastName;}";
- Cvar fullname = "#{javascript:document1.getItemValue('firstName') + ' ' + document1.getItemValue('lastName');}";
- Dvar fullname = "#{javascript:document1.getItemValueString('firstName') + ' '
How the community answered
(18 responses)- A6% (1)
- C11% (2)
- D83% (15)
Community Discussion
No community discussion yet for this question.