Hi John,
thanks for the detailed report.
>> sv('','paindescription_loc_bodyside__value',257,) . I opened all.js but couldn't find this anywhere
it's not in all.js, it's in your (generated) html page.
As you've noted this is JavaScript, and the key is the trailing comma. JavaScript allows parameters (at the end of the parameter list) to be excluded - but it doesn't allow "blank" parameters - ie there must always be something after a comma.
In JavaScript as soon as it hits an error, it stops. So you see it as a button not being marked up properly, or something doesn't work when you click on it, and so on.
Fortunately the line of code gives us some clues as to the mistake.
PainDescription is the procedure name, loc_bodyside is the field value.
257 is "event selected".
Looking at the template code I see that "event selected" will work for DISPLAY fields, but will cause this error for other fields. I've fixed that in the template for 7.06.
I suppose the question this leads us to though is why you're turning on the code for Event Selected in the first place? This is a fairly uncommon operation for non-display fields (clearly). So this might be something for you to consider, or feedback on.
cheers
Bruce