Appnitro Software Forums » MachForm

submit button

(7 posts)

  1. I have my form at http://holtmusic.com.au/contact/view.php?id=1

    currently the submit button says "Continue" how can I change it to say "Submit"?

    any help appreciated.

    Posted 3 years ago #
  2. Hi,

    You can simply edit "includes/languanges.php" file, try to search these code and make a change to the value :

    //form buttons
    $lang['submit_button']		=	'Submit';
    $lang['continue_button']	=	'Continue';
    $lang['back_button']		=	'Back';
    Posted 3 years ago #
  3. I expect you have the "Show Review Page before Submitting" feature turned on. That would be one way you're getting "Continue" rather than "Submit button.

    If you don't want the review feature turned on, you can un-check the box "Show Review Page..." in the Form properties for that form in the Machform editor.

    Posted 3 years ago #
  4. Anonymous
    Unregistered

    How can change style of that button?

    Posted 3 years ago #
  5. You can edit your CSS form and search for this style

    /**** Buttons ****/
    #main_body input.button_text
    {
    	overflow:visible;
    	padding:0 7px;
    	width:auto;
    }
    Posted 3 years ago #
  6. maxim
    Member

    Is there another way to change the Submit button text? For example, if I want the button to say "Submit" on one form and "Go for it" on another.

    Posted 3 years ago #
  7. Hi,

    I'm afraid you should edit "view-functions.php", to do so goto around line 1778 ~ 1782 you will find these code :

    if(empty($form->review)){
    	$button_text = $lang['submit_button'];
    }else{
    	$button_text = $lang['continue_button'];
    }

    you can replace with these code

    if(empty($form->review)){
    	if($form->id == '1')
    		$button_text = "Submit";
    	elseif($form->id == '2')
    		$button_text = "Go for it";
    	else
    		$button_text=$lang['submit_button'];
    
    }else{
    	$button_text = $lang['continue_button'];
    }

    Those code will print submit button on form 1 as "Submit" and "Go for it" for form 2.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.