Copied to clipboard

Flag this post as spam?

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


  • Ansar 181 posts 291 karma points
    Feb 17, 2011 @ 22:16
    Ansar
    0

    Custom Field Type - Text box with Add More using JQuery

    Hi All,

    I have a requirement to craete a new Field Type fpor contour.. basic functionality of the field type is a textbox with Add More button.. which allows the user to add more textboxes to enter data..

    Something similar to this http://www.mkyong.com/wp-content/uploads/jQuery/jQuery-add-remove-textbox.html

    When the user click submit button all the value should be saved as comma seperated value to database..

    I am very new to Umbraco.. any help on this matter is greatly apprecaited..

    Regards,
    Anz

  • Ansar 181 posts 291 karma points
    Feb 18, 2011 @ 17:55
    Ansar
    0

    Hi All,

    I am almost ready with first version of the above mentioned control.. 

    Can anyone please tell me whats the purpose of RenderPreview and RenderPreviewWithPrevalues functions?

    Best Regards,
    Anz

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 25, 2011 @ 11:01
    Dave Woestenborghs
    0

    Hi Anz,

    These methods are called to render the field in the form design mode.

    The RenderPreview let's you define a markup for the field to display in designer

    The RenderPreview let's you define a markup with prevalues if your fieldtype supports prevalues.

    I recommend you have a look at the sharde source : http://our.umbraco.org/projects/developer-tools/umbraco-contour-shared-source

    You will find some examples there. Look at the dropdown to see examples of both methods.

Please Sign in or register to post replies

Write your reply to:

Draft