Buttons on forms?

Long time ago we needed to have a button on HRNET screen. If you work with HRNET, you know, there are no buttons available on the screens.

Today almost no need for buttons, but I’ll tell you how the buttons can be done.

  • First, drag a text-field to the form canvas. Do not associate thie field with any data.
  • Call this text-field, say, “newButton
  • In Custom Script write this:
    var newButton = document.getElementById("NewButton"); 
    
    newButton.innerHTML = '';
    
    
    
    
    
    function sayHello(){
    
    alert("Hello!!");  
    
    }
    
    
    
  • Load this screen in the front-end. Enjoy the button.

I hope you don’t need to be told what to do with buttons.. -))

This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

4 Responses to Buttons on forms?

Leave a Reply

Your email address will not be published. Required fields are marked *