cancel
Showing results for 
Search instead for 
Did you mean: 

input field with help text?

Former Member
0 Kudos

Hi all

Can anyone tell me how to create an input field with help text written on it , please find attach image for reference?

regards

vaibhav

Accepted Solutions (0)

Answers (4)

Answers (4)

amy_king
Active Contributor
0 Kudos

Hi Vaibhav,

With NW 7 EhP2, there is a new property for InputField called inputPrompt which does this. Take a look at the InputField property documentation. Prior to EhP2, alternatives are either the tooltip property or an explanation.

Cheers,

Amy

former_member213957
Participant
0 Kudos

Hi Vaibhav,

the below options are possible types for help in inputfield:

1.show explanation

2. tooltip

3. suggested values

4. input help

I suggested to use either show explanation or tooltip and tooltip is sap guideliness recommended.

we have been only help text for application or window but we dont have individual ui elements.

Regards,

Kishorekumar

Former Member
0 Kudos

Hi Vaibhav,

The requirement you are asking can be achieved in a different way. See if it fits

You can use the explanation property of an input field to convey ur message to user. You can have a button with a help icon beside it. On click of it you can trigger a method with the following code:

  data cmp_api          type ref to if_wd_component.
  data application_api  type ref to if_wd_application.
  data show_explanation type abap_bool.

  cmp_api = wd_comp_controller->wd_get_api( ).
  application_api = cmp_api->get_application( ).
  show_explanation = application_api->get_show_explanation( ).

  if show_explanation = abap_true.
    show_explanation = abap_false.
  else.
    show_explanation = abap_true.
  endif.
  application_api->set_show_explanation( show_explanation ).

Let me know if it works.

Regards,

Sayan

former_member184578
Active Contributor
0 Kudos

Hi,

there is no provision in Web Dynpro ABAP to create like that. It is possible in html using java script.

Regards,

Kiran