Page 1 of 1
Is hyperlink attribute overriding "custom attributes"?
Posted: Mon Nov 28, 2022 7:03 pm
by amiens80
hi,
i have a basic text , i had the hyperlink attribut (it work fines). my field is also in readonly and viewable in edit page.
in the other custom attributes option (input tag attribut panel) , i added "style='cursor: zoom-in;'" to change the mouse pointer.
i checked the html content, and my ""style='cursor: zoom-in;'" does not appear in the code.
is there a reason ? i guess the hyperlink render option is overriding the custom attributes ?
i just want my link cursor be a "zoom icon", not the classic pointer link icon.
best regards
Re: is hyperlink attribut overrding "custom attributes" field ?
Posted: Mon Nov 28, 2022 10:16 pm
by mobhar
amiens80 wrote:
""style='cursor: zoom-in;'"
Double check your code. There are double " character at the beginning of that code.
Your code should be:
"style='cursor: zoom-in;'"
(with only single " character at the beginning).
I tested the modified code above, and it works properly. I can see the cursor mouse changed to the zoom-in icon.
You may also refer to the docs, and see the Custom Attributes section.
Re: is hyperlink attribute overriding "custom attributes"?
Posted: Thu Dec 01, 2022 5:06 pm
by amiens80
hi,
i added double-quotes around because it must be a php string expression (as said by the alert).
in fact, i remove the "read only" property and it works .
once i active readonly property , it did not work anymore. Problem is with readonly override, not with hyperlink override.