Copied to clipboard

Flag this post as spam?

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


  • Garret 68 posts 308 karma points
    Aug 18, 2014 @ 20:53
    Garret
    0

    mask or filter model.value as decimal

    Hi guys,

    Could be that i'm asking a stupid question, but i can't wrap my head around the following problem:

    I want to have a decimal property editor, but the value must be stored without de decimal separator

    So for example:

    On create: when someone types 9,00 or 9.00  the model.value should be 900.
    Also when you edit it fetches 900 from the database but it should show 9,00. 

    I've been struggling with filters and masks, but my knowledge of Angular and Umbraco 7 property editors is lacking to put it as an understatement:)

    Does someone have a working example or link to a tutorial?

    Thanks in advance!

    Garret

Please Sign in or register to post replies

Write your reply to:

Draft