Bookshelf Home | Contents | Index | PDF |
Siebel SmartScript Administration Guide > Extending Scripts with Siebel VB and Siebel eScript > Sample Siebel VB and Siebel eScript Methods > Dynamic QuestionsThe following sample code implements dynamic insertion of an answer into a question text. Specifically, it inserts the caller's title and last name, as determined by previous questions, into the target question. The question might be entered into SmartScript as follows: Hello. Is this [Contact.M/M] [Contact.LastName]? Siebel VB CodeDim MM as String Set Q = Page.GetQuestion ("Contact: Mr/Ms") Set Q = Page.GetQuestion ("Contact: Last Name") Text = OriginalQuestionText Siebel eScript Codevar MM; Q = Page.GetQuestion ("Contact: Mr/Ms"); Q = Page.GetQuestion ("Contact: Last Name"); Text = OriginalQuestionText (); |
Siebel SmartScript Administration Guide |