Copied to clipboard

Flag this post as spam?

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


  • Giampaolo Cutroneo 29 posts 159 karma points
    May 18, 2022 @ 10:58
    Giampaolo Cutroneo
    0

    Default value for textstring box

    I want insert a default value in a specific textbox property. How can I do it? Thanks.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    May 18, 2022 @ 11:07
    Dave Woestenborghs
    100

    Hi Giampaolo,

    Is this for a specific property on a doctype ? Or for all text boxes.

    You could write a event or notification handler to handle this.

    For V9 this could be done using Notification handler : https://our.umbraco.com/Documentation/Reference/Notifications/EditorModel-Notifications/#usage

    For V8 you can use this : https://our.umbraco.com/Documentation/Reference/Events/EditorModel-Events/#usage

    Dave

  • Giampaolo Cutroneo 29 posts 159 karma points
    May 18, 2022 @ 12:30
    Giampaolo Cutroneo
    0

    Thank you Dave, I'll read the documentation page you pointed out to me. The default value is for a specific property on a doctype. But it could be used in other document type.

    Giampaolo

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies