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

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Changing language upload file button [SELECT FILES]


  1. hanstantra
    Member

    Hello,

    I want to change the upload file button but I couldn't found it anywhere. Where is the file to edit the upload button text? http://prntscr.com/663x3z

    Any help would be appreciated :)

    Thanks,
    Handoko

    Posted 9 years ago #
  2. bmike
    Member

    +1

    Posted 9 years ago #
  3. bmike
    Member

    I've found the solution:

    1) create a new js file (ex. forms.js);

    2) write this code ("#element_5" could be different... check the id of the select input field in your form):

    $(function() {
    $("#element_5").uploadifive({
    'buttonText' : 'BROWSE...'
    });
    });

    3) open machform editor and go to the "form properties";

    4) "show more option";

    5) in "Advanced Option" put the url of the js create before (ex. http://www.domain.com/js/forms.js) in the field and save.

    Posted 9 years ago #
  4. bmike
    Member

    Unfortunately the above code block the upload in the form... please AppNitro, could you tell us how to change correctly the button text (custom text for every country language)?
    Thanks

    Posted 9 years ago #
  5. yuniar

    You'll need to edit the "machform/js/uploadifive/jquery.uploadifive.js" file.

    Around line 42, you should see this code:

    'buttonText'      : 'Select Files',

    You can change the above text.


    MachForm Founder

    Posted 9 years ago #
  6. bmike
    Member

    Ok, but if I use multi-language forms?
    How can I custom the text for each languages form?

    English is not the only language in the world...

    Posted 9 years ago #

RSS feed for this topic

Reply