SourceResponse Usage
The sourceResponse is the first QuestionnaireResponse being passed into the renderer. If no response is passed in, an empty sourceResponse will be initialized by the renderer.
The sourceResponse does not change when the form gets edited - that is where the updatableResponse
comes in.
Live Editor
function App() { const sourceResponse = useQuestionnaireResponseStore.use.sourceResponse(); return ( <> <YourBaseRendererWrapper questionnaire={qCalculatedExpressionBMICalculator} /> <JsonViewer hookName="sourceResponse" data={sourceResponse} /> </> ); }
Result
Loading...