gridRowLayout conditionl contents

Hi,

Is there any way to display textField/radioButtonField 's in gridRowLayout based on satisfying given condition ? I have a column, it can be of either dropdown or text field or radiobutton. Type of row has to be decided based on column header selection (column header selection happens dynamically). I have tried using required option but its not working. 

 a!gridRowLayout(
contents: {
a!dropdownField(
labelPosition: "COLLAPSED",
placeholder: "Please select one",
choiceLabels: {"A","B","C","D"},
choiceValues: {"A","B","C","D"},
value:"",
saveInto: a!save(ri!answerList.answerValue,save!value),
required: exact(fv!item.type = "grid",true(),false()),
disabled: rule!APN_isTrue(ri!isReadOnly)
),

a!radioButtonField(
value: "",
choiceLabels: {"False", "True"},
choiceValues: {false, true},
saveInto: a!save(local!gridQuestionsList.defaultAnswer,save!value),
required: if(fv!item.type = "radio button",true(),false())

)

}

)

  Discussion posts and replies are publicly visible