This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

submit button


  1. katya
    Member

    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 15 years ago #
  2. redityo

    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';

    MachForm Support

    Posted 15 years ago #
  3. AMurray
    Pro Member

    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 15 years ago #
  4. Anonymous
    Unregistered

    How can change style of that button?

    Posted 15 years ago #
  5. redityo

    You can edit your CSS form and search for this style

    /**** Buttons ****/
    #main_body input.button_text
    {
    	overflow:visible;
    	padding:0 7px;
    	width:auto;
    }

    MachForm Support

    Posted 15 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 15 years ago #
  7. redityo

    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.


    MachForm Support

    Posted 15 years ago #

RSS feed for this topic

Reply