Appnitro Software Forums » MachForm

change SUBMIT button value

(4 posts)

  1. drowan
    Member

    Is there a way to change SUBMIT button value text to eg. SEND MESSAGE ??

    Posted 3 years ago #
  2. philwareham
    Member

    Yeah, it's in the includes folder file named "language.php", line 56 (in MachForm v2).

    $lang['submit_button'] = 'Submit';

    Change 'Submit' to whatever you want.

    Posted 3 years ago #
  3. drowan
    Member

    Thanks Phil,
    that works, but it applies to all forms, I was hoping it could be form specific.
    Maybe it should go on the wishlist
    Cheers

    Posted 3 years ago #
  4. I've noted this into our feature request list.

    If you don't mind some hack, it's pretty easy to have different submit button for each form.

    Let say your form is having id = 23
    Edit you language.php, search for the submit button part, modify it to be like this:

    $lang['submit_button']	= 'Submit';
    if($_REQUEST['id'] == 23){
    	$lang['submit_button'] = 'Send Message';
    }


    Adjust the id above with your own form id.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.