11 years ago
5
Topic

Hi guys,

how can i add an unit like Kg or € behind the input fields? Is there an option in the field settings? Thanks for help!

Get a VIP membership
11 years ago
4
Level 1

Hi amansoor,

Thank you for your post and welcome to SEBLOD forum.

For your question i can said, you can add a unit after a field form by using a custom variation.

Regards,
Mehdi.

11 years ago
3
Level 2

Thanks for your reply! Can you describe it a little more detail please? Thank U

41 Posts
Umair Hassan
11 years ago
2
Level 3

Hi Aamir, 


Are you from Pakistan or India? I am from Pakistan, If you can speak Urdu or Hindi, we could help each other easily.


Sorry guys I am asking a non related question. because there is no way to communicate with the user on Seblod Forum by Personal Message or email.

Once Again Sorry.


Regards,

Umair

11 years ago
1
Level 4

Hi Umair,

i'm from iran living in germany! So please answer in english or german :0)


41 Posts
Umair Hassan
11 years ago
0
Level 5

Hi Aamir,


You can do it by using Typo Html Plugin:

If you would like to put a constant unit like you just want to use Kg as Prefix of your field use this code in Html (<b>*value* Kg</b>) without brackets.


Or if you would like to use different units in the same field you should add two fields:

1. First_Field : This field will be for Quantity (i.e 1000)

2. Second_Field: This field will be for Unit (i.e Kg), you can use Select Simple Field or Text Field to put unit manually.


In Content Tab press button 3 and select Typography as Html and add this code in Html (

<b>$cck->getValue('first_field'); $cck->getValue('second_field');</b>

)


Hope the above is the solution for you.


Please study Plugin Typo Html Documents.

Regards,

Umair Hassan Raja

Get a Book for SEBLOD