Hi all, I'm trying to insert a fontawesome icon into a form submission button.
<i class="fas fa-bookmark"></i> The form is being created in the controller using FORM. form=FORM(INPUT(_name='bookmark',_id="bookmark",_type='hidden'), INPUT(_type='submit',_class='btn btn',_value=T('Bookmark'))) I've tried a couple of things so far (listed bellow), but none of them worked: 1. form=FORM(INPUT(_name='bookmark',_id="bookmark",_type='hidden'), INPUT(_type='submit',_class='btn btn',_value='<i class="fas fa-bookmark"></i>'+T('Bookmark'))) 2. form=FORM(INPUT(_name='bookmark',_id="bookmark",_type='hidden'), INPUT(_type='submit',_class='btn btn',_value=XML('<i class="fas fa-bookmark"></i>')+T('Bookmark'))) Any suggestions on how could I do this? Thanks, Jon. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Libre de virus. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAK8tz32s7SLEbu-uKTBxQe5eL1tdCPYQt5jRvVi2KtcYZ6D_XQ%40mail.gmail.com.