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?

  1. JulienD says:

    Actually it would be pretty interresting to see in which contexts you’re using your devs 🙂

    Thanks for keeping posting, very inspiring :))))

    • admin says:

      strangely enough, we don’t need buttons anymore. Couple a years ago we wished we have buttons, but now we learned how to live without them.

      So far I have not came up with any places where we’d benefit from a button -)

  2. Dan Hutson says:

    I’ve found my first use for a button!

    I’m using it on a personal details update workflow to swap primary and secondary contact numbers around.

Leave a Reply

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