1
0
-1

Hi Guy's,

Is there any way to create a submit button on a form?

Thanks,

 

 

 

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      if you really want to add your own custom button. you can use jquery javascript as follow

      // Add Save as Draft Button
      $(document).ready(function(){
      	var draft= $('<input id="saveAsDraft" name="draft" class="form-button" type="submit" value="#i18n.saveAsDraft#"/>');
      	draft.insertBefore($('input#submit.form-button'));
      
      	$('input#saveAsDraft.form-button').on('click',function(event){
      		event.stopPropagation();
      		$("input[name='status']").val(0);
      		$('input#submit.form-button').trigger("click");
      		event.preventDefault();
      	});
      });
        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi, you do not need to manually add a button to a form. An appropriate submit button will automatically be displayed in the form when the form is displayed in a userview.

          CommentAdd your comment...