You need to sign in to do that
Don't have an account?
3 Creeks
"html-data-" pass through being ignored for some field types
I am using a html-data- attribute to get the field name when looping through a fieldset:
Thanks
<apex:repeat value="{!$ObjectType.My_Object__c.FieldSets.Header}" var="f"> <apex:outputField value="{!showFieldSet[f]}" html-data-FieldName="{!f}"/> </apex:repeat>Which gives me the following HTML for most fields:
<span data-fieldname="MyField__c">Something Important</span>But in other cases, the data-fieldname seems to be just ignored and is not there. The ones that are ignored, as far as I can tell, seemed to be fields that are either of type currency or percentage...so fields that are auto formatted by visualforce when displayed. Has anyone else come across this and know of a fix or work around?
Thanks
I have fully reproduced your problem.
The work around could be a trivial embedded <span> but you could need an extra <span class="fiield"> for your JS code on the client side. Best regards
Alain
All Answers
I have fully reproduced your problem.
The work around could be a trivial embedded <span> but you could need an extra <span class="fiield"> for your JS code on the client side. Best regards
Alain
But we have to preserve a certain sense of modesty nevertheless (even if the solution is grandiose).
Best regards
Alain