Question:
I’m trying to add labels to the summary details displayed in the confirmation section of the Form Entry UI. When each input is placed in it’s own fieldset this displays okay in the summary, but when all inputs are placed in one fieldset I get a comma separated list of the input values.
From this line it seems like one should be able to provide a label for the summary details by specifying a label element whose for attribute is the same as the input's id attribute. The snippet below should work okay, but it does not. How do I make this work?
I think I might have found a bug, but need confirmation. I believe the reason the labels are not being selected is because the jQuery selector for the label is not properly formed.
Notice the comma in the original snippet for the first selector, it evaluates to something like label[for="stay-field,"] and this won’t match <label for="stay-field"></label>