Copied to clipboard

Flag this post as spam?

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


  • Manasa 41 posts 161 karma points
    Mar 28, 2018 @ 03:15
    Manasa
    0

    Customized field type in Form

    Hello Everyone,

    Are the above field types standard in Umbraco forms? enter image description here

    can i add customized field type like Rich text editor and button? Please help. Thank you in advance.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Mar 28, 2018 @ 07:55
    Alex Skrypnyk
    0

    Hi Manasa

    Yes, this is a list of Umbraco Forms fields. Of course, you can create custom Umbraco Forms field, have a look at these links:

    https://our.umbraco.org/documentation/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype

    http://www.skrift.io/articles/archive/extending-umbraco-forms/

    https://our.umbraco.org/forum/umbraco-forms/86590-custom-field-type-umbraco-forms

    And ask more questions on our.forum, it's super friendly community :)

    Thanks,

    Alex

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Apr 08, 2018 @ 18:53
    Alex Skrypnyk
    0

    Hi Manasa

    Did you find a solution? can you share with our community?

    /Alex

  • Manasa 41 posts 161 karma points
    Jul 18, 2018 @ 17:14
    Manasa
    0

    No Alex, can you please guide me,Thank you.

  • aaeda 117 posts 150 karma points
    Jul 18, 2018 @ 12:29
    aaeda
    0

    Hello Alex

    I have added a custom field type in forms that was completed successfully. But I wanted to show a summary of filled fields in the new field. Do you have any advice of how it can be done?

    thanks Aaeda

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 18, 2018 @ 13:44
    Alex Skrypnyk
    0

    Hi Aaeda

    Do you want to show a summary on the form or on the thank you page?

    Alex

  • aaeda 117 posts 150 karma points
    Jul 19, 2018 @ 07:55
    aaeda
    0

    Hello Alex

    In fact I am doing a multi step form and I want to show the summary before the user submits the form.

    thanks

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 19, 2018 @ 08:29
    Alex Skrypnyk
    0

    If you want to show it before submit without page reload - then you have to use some js on the page that will show data.

  • aaeda 117 posts 150 karma points
    Jul 19, 2018 @ 08:45
    aaeda
    1

    Hi

    thanks Alex. Got this code from the net, but generating an error. Do you know if that can retrieve the record before submitting? thanks

     string formGuid = "03928f28-cceb-4eb4-8eb2-4c1f69927430";
    if (!string.IsNullOrWhiteSpace(formGuid))
    {
        string pageId = umbraco.presentation.nodeFactory.Node.GetCurrent().Id.ToString();
        string cookieName = String.Format("contour_{0}_{1}", pageId, formGuid);
        string recordId = Request.Cookies[cookieName].Value;
        dynamic record = null;
    
        if (!string.IsNullOrWhiteSpace(recordId))
        {
            // get access to the database where the form records are stored
            using (var recordStorage = new Umbraco.Forms.Data.Storage.RecordStorage())
            {
                // get the record by id, but the id is a guid
                var rec = recordStorage.GetRecord(new Guid(recordId));
    
                // get the dynamic record object, this object is stored as xml in the database in table UFRecordsXML
                record = new Umbraco.Forms.Mvc.DynamicObjects.DynamicRecord(rec);
    
            }
        }
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft