Skip to Content
avatar image
Former Member

Additional text beside the input field

Hello Experts,

I have one simple requirement where I need to display some additional text beside the input field.

Please check the attached picture for reference.

Can someone please help me get this?

Thank you.

Image.JPG (3.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jan 11, 2015 at 05:31 PM


    Thanks for your reply.

    Can you please explain how to use the caption element?

    To explain in a simple line, I want to display two labels(Right side and Left side) for one input field.  Please check the sample taken from an online form.

    The text "Total Experience" and the input field with be displayed by default (context node attributes from the UI Configuration).

    I have to add the static text "Years" next to the input field.

    Please help me with this. Thank you.

    Sample.JPG (3.3 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • HI,

      You can add one attribute in context node and add the filed next to the input field and in configuration uncheck the box show fieldlable and make it display only.

      Then in that attribute get method in pass value = "Years".



  • avatar image
    Former Member
    Jan 03, 2015 at 06:28 AM

    Hi Maren,

    In your view.htm there is tag thtmlb:label use this lable and provide your text where you want.

    example :





    <thtmlb:label id        = "text"

                   text      = "additional text"

                   labelType = "MEDIUM" />


    <thtmlb:inputField id    = "add"

                        type  = "STRING"

                        value = "click" />





    this will look like this..

    Thanks & Regards,


    lable.JPG (2.7 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Maren,

      i got it now then in that case select any one text attribute or add one attribute under your context node and in get_p method declare field type as text.

      like this..

      CASE iv_property.

         WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

           rv_value = cl_bsp_dlc_view_descriptor=>FIELD_TYPE_TEXTAREA.


           rv_value = 5. "Number of lines in you text box


      adjust that field beside your input field in the config part and uncheck the lable check box in the field property.. go to get_field method. provide your text in the returning parameter.


      value = 'additional text about policy'.

      try this and let me know... fallow this link to add custom field in your context node based on requirement you have to choose which attribute you want this example is for value attribute..

      Creating a Custom field and display it in a table view

      Thanks & Regards,


  • avatar image
    Former Member
    Jan 05, 2015 at 05:31 AM

    Use caption, but if it's dynamic, then you may have to define it as a text element. Either ways, this can be easily achieved on configuration

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 14, 2015 at 12:04 PM

    Thanks Ritu,

    But, this is still a workaround. There must be some other way to display the text other than using the caption which is usually used to display the Captions.

    Anyway, thanks for your response.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Maren,

      How about putting the text you want to show as suffix in the prefix itself? Like this:

      Total Experience (in years)

      This could be an option depending on what your requirement is.