I need help with a concern. I have multiple record type fields that are boolean, and I need only one of them to have a value of true, while the rest should be null.
true
null
a!localVariables( local!hearingSelected, local!reminderSelected, local!complianceSelected,
a!columnsLayout( columns: { a!columnLayout( contents: { a!checkboxField( choiceLabels: { "Hearing Required" }, choiceValues: { true }, labelPosition: "COLLAPSED", value: if( ri!record['recordType!{8a8a403a-8fe2-4ed4-a3a3-9dd7b01f720d}SCA_IncidentTypev2.fields.{017a84f6-9869-4444-887a-3eddf23e1e97}hearingrequired'], true, null ), saveInto: { local!hearingSelected, a!save( ri!record['recordType!{8a8a403a-8fe2-4ed4-a3a3-9dd7b01f720d}SCA_IncidentTypev2.fields.{017a84f6-9869-4444-887a-3eddf23e1e97}hearingrequired'], if( isnull( save!value ), false, true ) )}, required: false, choiceLayout: "COMPACT", choiceStyle: "CARDS" ) } ), a!columnLayout( contents: { a!checkboxField( choiceLabels: { "Reminder Required" }, choiceValues: { true }, labelPosition: "COLLAPSED", value: if( ri!record['recordType!{8a8a403a-8fe2-4ed4-a3a3-9dd7b01f720d}SCA_IncidentTypev2.fields.{edfd85a1-7524-4eeb-a1f3-a71da5e0f275}reminderrequired'], true, null ), saveInto: { local!reminderSelected, a!save( ri!record['recordType!{8a8a403a-8fe2-4ed4-a3a3-9dd7b01f720d}SCA_IncidentTypev2.fields.{edfd85a1-7524-4eeb-a1f3-a71da5e0f275}reminderrequired'], if( isnull( save!value ), false, true ) )}, required: false, choiceLayout: "COMPACT", choiceStyle: "CARDS" ) } ), a!columnLayout( contents: { a!checkboxField( choiceLabels: { "Compliance Required" }, choiceValues: { true }, labelPosition: "COLLAPSED", value: if( ri!record['recordType!{8a8a403a-8fe2-4ed4-a3a3-9dd7b01f720d}SCA_IncidentTypev2.fields.{c058a7ed-fb86-46fd-9b9a-d8fe5de7f297}compliancerequired'], true, null ), saveInto: { local!complianceSelected, a!save( ri!record['recordType!{8a8a403a-8fe2-4ed4-a3a3-9dd7b01f720d}SCA_IncidentTypev2.fields.{c058a7ed-fb86-46fd-9b9a-d8fe5de7f297}compliancerequired'], if( isnull( save!value ), false, true ) )}, required: false, choiceLayout: "COMPACT", choiceStyle: "CARDS" ) } )
}
)
Discussion posts and replies are publicly visible
a!localVariables( local!hearingSelected, local!reminderSelected, local!complianceSelected, a!columnsLayout( columns: { a!columnLayout( contents: { a!checkboxField( choiceLabels: { "Hearing Required" }, choiceValues: { true }, labelPosition: "COLLAPSED", value: local!hearingSelected, saveInto: { local!hearingSelected, a!save( { local!complianceSelected, local!reminderSelected }, null() ) }, required: false, choiceLayout: "COMPACT", choiceStyle: "CARDS" ) } ), a!columnLayout( contents: { a!checkboxField( choiceLabels: { "Reminder Required" }, choiceValues: { true }, labelPosition: "COLLAPSED", value: local!reminderSelected, saveInto: { local!reminderSelected, a!save( { local!complianceSelected, local!hearingSelected }, null() ) }, required: false, choiceLayout: "COMPACT", choiceStyle: "CARDS" ) } ), a!columnLayout( contents: { a!checkboxField( choiceLabels: { "Compliance Required" }, choiceValues: { true }, labelPosition: "COLLAPSED", value: local!complianceSelected, saveInto: { local!complianceSelected, a!save( { local!hearingSelected, local!reminderSelected }, null() ) }, required: false, choiceLayout: "COMPACT", choiceStyle: "CARDS" ) } ) } ) )
Try this!
Thank you i got it now.