BenSelect Documentation
GetAnswer(PersonView,String) Method
See Also  Example Send Feedback
Selerix.BenSelect.View.ProductEngines Namespace > ProductEngineView Class > GetAnswer Method : GetAnswer(PersonView,String) Method
person
The person.
questionName
The question.
Gets the answer.

Syntax

JScript 
public function GetAnswer( 
   person : PersonView,
   questionName : String
) : String;

Parameters

person
The person.
questionName
The question.

Example

JScriptCopy Code
//The following script displays a question based on the answer to one question:
Event.Value = Event.GetAnswer(Event.PrimaryInsured, "BMEAO_20_1_Existing") == 'True';
JScriptCopy Code
// Example 2: Based on answers to multiple questions, this script shows the question if either of the other questions are checked as yes.
Event.Value = Event.GetAnswer(Event.PrimaryInsured,"BMEAO_20_1_Existing") == 'True' || Event.GetAnswer(Event.PrimaryInsured,"BMEAO_20_2_Replacement") == 'True';

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2024 All Rights Reserved.