Announcement

Collapse
No announcement yet.

Unit in a Form field

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unit in a Form field

    Hallo

    It is possible, for example the unit "cm", show in a field?

    Best Regards

    Kai Schäfers

  • #2
    where in a field? Actually in the field?

    Cheap alternative is to change the label of the field. So if the field label is "length", change the label to be "length (cm)" :-)

    Comment


    • #3
      Put this in the onLoad event of the form.

      sc_format_num({your_field}, '.', ',', '2', 'S', '1', ' cm',2);

      For a grid you can just set the field to currency and select 'No' for regional settings and 'Yes' for currency symbol.
      Now you are able to adjust the formatting to your liking.

      jsb

      Comment


      • #4
        Thanks that sounds fine.

        I will try it.

        Comment

        Working...
        X