Allow Interview Extensions to Get Value Text for Inputs
Note: This feature is only available in Latest Version Interviews.
Using the getValueText() method in your interview extension you can return the natural language text value for input controls. For example, you could display the value text on the screen after a question has been answered.
To enable this feature you need to create an opm.extension.config.json file and include it as a custom file in your project. To do this:
- Create a file called opm.extension.config.json. This file needs to have the following content:
{ "getValueText": true } - Put the opm.extension.config.json file in the /interview-theme/resources folder for your project. (This folder is created when you click the Custom Files button in the Styles dialog box on the Interview tab in Policy Modeling.) The values can now be accessed by interview extensions via the getValueText() method on the control object.