Copied to clipboard

Flag this post as spam?

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


  • Fahad Ayub 71 posts 238 karma points
    Aug 02, 2016 @ 13:43
    Fahad Ayub
    0

    Adding Form in GridLayout

    Hi,

    I created a gridlayout. In one row of the grid I want to add user login and password fields. So user can login or register. I am not sure how to add the form , text fields, submit button and links in a row in grid. I thought I could achieve this by opening view in Visual Studio but Visual Studio only showing :

    @CurrentPage.GetGridHtml("PageLayout"")
    

    Please help. Thanks

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Aug 02, 2016 @ 14:09
    Dennis Adolfi
    101

    Hi Fahad.

    Try this approach:

    First. Create a Macro with a Macro Partial View in Developer, and add your user login html. (Tip: There is a Userlogin template you can choose that gives you all of this functionallity. Se image:) enter image description here

    Second. In your macro, tick the checkbox "Use in rich text editor and the grid".

    enter image description here

    Third. In Developer / Data Types, edit your Grid Layoout so that rows are allowed to add macros. enter image description here

    Lastly. Now, on the page you want to add the form, select the macro for yourt userlogin. enter image description here

    Best of luck! Let me know i you need anymore help.

  • Fahad Ayub 71 posts 238 karma points
    Aug 02, 2016 @ 14:22
    Fahad Ayub
    1

    Thanks so much for your help. Really appreciated.

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Aug 02, 2016 @ 14:23
    Dennis Adolfi
    0

    Thanks Fahad! Glad i could help! :)

    Have a great day!

Please Sign in or register to post replies

Write your reply to:

Draft