cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create a help button beside a field and provide help text.

PranavBhardwaj
Explorer
0 Kudos
1,089

Hi Guys ,

I have a requirement where I need to provide a small help button beside a field on web UI .On pressing this button the users will be provided with the data what to enter in the field.This data must come as a pop up .The user will read the text from pop up and close.Accordingly , he will then fill the field himself.

Here the required field is a long textarea field (like the notes field in Account details page).And how to provide the help text in pop up.

One more question :Is there any other way to help user enter this text field..?The user only wants some help to fill out the fields.He will not select any value.

Enter questions?

                                                    

This is how the field will look.I want to give a help button left side of this field and then the help texts should come on click.

Awaiting response.

View Entire Topic
former_member210661
Active Contributor
0 Kudos

Hi Pranav,

i think we can do using script also go through this procedure might be this will give you some idea.. declare button and notes in your view.html when ever user click on that button display alert which is like popup that will show the what ever written value in that notes field..

ex :

view.htm code...

<script type="text/javascript">

function Select() {

   var Field = document.getElementById(thtmlbKeyboardFocusIdFieldId);

   var fromId      = Field.value;

   var value11 = document.getElementById(fromId).value;

   if (fromId.indexOf("fromTextArea") == -1) {

     alert("Please Enter Some Text In notes");

     return;

   }

     alert(value11);

   }

</script>

<table>

   <tbody>

     <tr>

       <td>

<input type="button" value="click" onclick="Select();" />

</td><td>

<thtmlb:textArea id   = "fromTextArea"

                  text = " " />

        </td>

     </tr>

   </tbody>

</table>

Try this and let me know..

Thanks & Regards,

Srinivas.