JSON{
name: 'Competitor Material Information',
elements: [
{
type: 'panel',
name: 'coating_info',
elements: [
{
type: 'dropdown',
name: 'competitor_name',
title: 'Insulation Coating',
choicesByUrl: {
url: 'https://scaffold-dev.deliverain.io:8190/Enquiry/FpCoatCode',
valueName: 'sinsCoatingType',
},
},
{
type: 'dropdown',
name: 'competitor_specs',
title: 'Average coating thickness',
startWithNewLine: false,
choicesByUrl: {
url: 'https://scaffold-dev.deliverain.io:8190/Enquiry/AvgCoatingThickness/{competitor_name}',
valueName: 'avgCoatingThickness',
},
},
{
type: 'dropdown',
name: 'competitor_mill',
title: 'Min Avg. Insulation Resistivity',
choicesByUrl: {
url:'https://scaffold-dev.deliverain.io:8190/Enquiry/MinAvgInsulation/{competitor_name}/{competitor_specs}',
valueName: 'sirOhmCm2PerLaMin',
},
},
{
type: 'dropdown',
name: 'coating_weldable',
startWithNewLine: false,
title: 'Weldable',
choices: ['Yes', 'No'],
},
{
type: 'comment',
name: 'remarks',
title: 'Remarks',
hideNumber: true,
defaultValue:
'1)Coating colour deviation may be possible without affecting the coating properties\n2) Magnetic properties are guaranteed in as received condition and measurement as per IS649.\n3) Average coating thickness is average of both top and bottom.',
},
],
title: 'Coating Information',
showQuestionNumbers: 'off',
},
],
description: 'Coating Information',
};
Above is my SurveyJson.As you see the API are interlinked with other dropdown values.
So here I need "competitor_mill" first value to be set from choice which comes from API.
Also if I select one dropdown value from "competitor_name" then the "coating_weldable" value should be set as YES.
NOTE: The dropdown values can be changes anytime so the values should be set accordingly