Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter S 64 posts 106 karma points
    Dec 07, 2015 @ 09:31
    Peter S
    0

    Adding font awesome icons to 'previous' and 'next' buttons in Umbraco Forms

    I'm trying to add some font-awesome icons to the 'previous' and 'next' buttons of Umbraco forms. I've tried to replace the input button tags with a button tag. While this allows me to insert an icon next to the text, the form stops to function properly. The 'next' button still seems to function, but the 'previous' button now acts as the 'submit' button. See code below.

    <button type="submit" class="btn prev cancel btn-upper " name="__prev">
        <i class="fa fa-caret-left"></i> @Model.PreviousCaption
    </button>
    

    Does anyone have a working solution for this?

  • Peter S 64 posts 106 karma points
    Dec 07, 2015 @ 10:13
    Peter S
    0

    I'll answer my own question :)

    After adding value="__prev" to the button tag, it now works.

  • Prisha 16 posts 86 karma points
    Sep 01, 2016 @ 00:05
    Prisha
    0

    hi peter i now this is an old post but i am having problem with font awesome icons.I am using css class to display fa bar icon but it is not displaying bars.

    code:

                            <span class="sr-only">Toggle navigation</span>
                            <span class="sr-only"></span>
                            <span class="fa fa-bars"></span>
    

    any idea how can i solve this problem?

Please Sign in or register to post replies

Write your reply to:

Draft