You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
Hi, great plugin. I am using something similar to the category list to have multiple selections, I would like to have some or all checked since the form will be in edit mode. It works great for setting the selected but I can no longer make any changes to the field. The following is my row for my medical app. I appreciate any help.
I am using swift 1.2 with xcode 6.3.2 and targeted for ios 8 >
row = FormRowDescriptor(tag: Static.incidents, rowType: .MultipleSelector, title: "Incidents")
row.configuration[FormRowDescriptor.Configuration.Options] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
row.configuration[FormRowDescriptor.Configuration.AllowsMultipleSelection] = true
row.value = [4,8]
row.configuration[FormRowDescriptor.Configuration.TitleFormatterClosure] = { value in
switch( value ) {
case 1:
return "Meds - missed or refused to take"
case 2:
return "Missed meal / ate little or nothing"
case 3:
return "Unmanaged urinary incontinence"
case 4:
return "Unmanaged bowel incontinence"
case 5:
return "Stumble/near-fall"
case 6:
return "Fall"
case 7:
return "Alcohol/substance abuse during visit"
case 8:
return "Emergency room visit"
case 9:
return "Violent behavior, struck caregiver, pulled hair"
case 10:
return "Unable to rise (new event)"
case 11:
return "Unable to go up/down stairs (new event)"
case 12:
return "Notable increase in bathroom trips"
case 13:
return "Notable decline in ADL capacity"
case 14:
return "Increased confusion"
case 15:
return "Increased agitation or combativeness"
case 16:
return "Increased listlessness or depression"
default:
return nil
}
} as TitleFormatterClosure
// row.value = [4,8] <-- Tried here too but same result....
section2.addRow(row)
The text was updated successfully, but these errors were encountered:
Figured it out after digging through the codes, you have to pass back a NSMutableArray.
var selectedArray : NSMutableArray = [4,8]
row.value = selectedArray
That would be great to add to the documentations for those searching for the fix.
Hi, great plugin. I am using something similar to the category list to have multiple selections, I would like to have some or all checked since the form will be in edit mode. It works great for setting the selected but I can no longer make any changes to the field. The following is my row for my medical app. I appreciate any help.
I am using swift 1.2 with xcode 6.3.2 and targeted for ios 8 >
The text was updated successfully, but these errors were encountered: