choice1: a!radioButtonField( choiceLabels: cons!CR_APP_TXT_CHOICE_LABELS_YES_NO, choiceValues: cons!CR_APP_TXT_CHOICE_LABELS_YES_NO, choiceLayout: "COMPACT", value: fv!item.answer_txt, saveInto: if( contains( index( ri!crAPPRestructure_cdt.answer_txt, wherecontains( index( local!SingleREFRestructure_cdt, "dependentRefId_int", {} ), ri!crREFRestructure_cdt.Id_int ), {} ), cons!CR_APP_TXT_CHOICE_LABELS_YES_NO[2] ), a!save( fv!item.answer_txt, null ), a!save( fv!item.answer_txt, fv!item.answer_txt ) ), disabled: ri!IsReadOnly_bool, required: true(), requiredMessage: cons!CR_APP_RTF_TXT_VALIDATION_MSG ), choice2: a!integerField( value: fv!item.answer_txt, saveInto: fv!item.answer_txt, disabled: if( or( contains( index( ri!crAPPRestructure_cdt.answer_txt, wherecontains( index( local!SingleREFRestructure_cdt, "dependentRefId_int", {} ), ri!crREFRestructure_cdt.Id_int ), {} ), cons!CR_APP_TXT_CHOICE_LABELS_YES_NO[2] ), ri!IsReadOnly_bool ), true(), false() ), readOnly: if( index( local!SingleREFRestructure_cdt, "readOnlyFlag_int", {} ) = 1, true(), false() ), required: if( or( index( local!SingleREFRestructure_cdt, "readOnlyFlag_int", {} ) = 1, contains( index( ri!crAPPRestructure_cdt.answer_txt, wherecontains( index( local!SingleREFRestructure_cdt, "dependentRefId_int", {} ), ri!crREFRestructure_cdt.Id_int ), {} ), cons!CR_APP_TXT_CHOICE_LABELS_YES_NO[2] ) ), false(), true() ), requiredMessage: cons!CR_APP_RTF_TXT_VALIDATION_MSG )
HI,
here am getting these questions from db and populating in UI so have used choice in grid row layout
requirement is when i select NO for 1st question the 1.1 data need to wipe/erase [their is one depended data i.e,dependent_id, based on that am differencing]
i have written the code but not meeting the requirement
can anyone help with that?
Discussion posts and replies are publicly visible