
How can I make a dropdown from a sp,
to show Parent.Default &
to show the checkbox checked related to selected dropdown item &
be able to rechange the selected item with the other checkboxes &
make the checkboxes, if one gets checked = others gets unchecked,
all of these made to work altogether, in same form.
PS: the dropdown is not visible for the customer, only by checkbox we chose a dropdown item.
Forms Items is _currentRecord, it means the lastsubmit of the form.
Default of the dropdown datacard:
If(!IsBlank(_currentRecord.DP_DTAdeterminedby), ThisItem.DP_DTAdeterminedby,
If( IsBlank(_currentRecord.DP_DTAdeterminedby),
If(
dcvBIsolely.Value=true,LookUp(Choices([@S2DM_GeneralInfo].DP_DTAdeterminedby),Value="BIsolely")
,dcvTPsolely.Value=true, LookUp(Choices([@S2DM_GeneralInfo].DP_DTAdeterminedby),Value="TPsolely")
,'dcvBI&TP'.Value=true, LookUp(Choices([@S2DM_GeneralInfo].DP_DTAdeterminedby),Value="BI&TP")
)))
Default of one of the checkboxes (there are 3 in total):
If(
ThisItem.DP_DTAdeterminedby.Value = "BIsolely",true,
ThisItem.DP_DTAdeterminedby.Value = "BI&TP", false,
ThisItem.DP_DTAdeterminedby.Value = "TPsolely", false,
IsBlank(ThisItem.DP_DTAdeterminedby.Value) ,false
)
Form - Items - _currentRecord
Form - OnSuccess - Set(_currentRecord, Self.LastSubmit)
Form is reeditable after submitting, and reeditable when chosing it from a gallery.