Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string function check_box_list_string( required string name, required array collection, struct options = structNew(), boolean escape = true, struct baseTagData = structNew()){
- var str = '';
- var itemStr = '';
- var x = 0;
- // generate the inner loop of li wrapped inputs
- for (x = 1; x LTE arrayLen(arguments.collection); x++){
- // clear itemStr value
- itemStr = '';
- local.opt = { nowrap = true };
- itemStr &= 'Line 1:' & hidden_field_tag_string( name = arguments.name & '_' & x, value = arguments.collection[x].value, options = local.opt );
- itemStr &= 'Line 2:' & check_box_tag_string( name = arguments.name & '_' & x, checked = arguments.collection[x].checked, options = local.opt );
- itemStr &= 'Line 3:' & label_tag_string( content = arguments.collection[x].name );
- str &= itemStr;
- }
- return str;
- }
Add Comment
Please, Sign In to add comment