PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How to filter text field

  1. roman.bwg
    Member

    Hi it's a verry nice plugin !

    I have looked the forum, found this :

    add_filter("gform_submit_button", "form_submit_button");
    function form_submit_button($button){
        return "<input type='submit' value='My new button' />";
    }
    add_filter("gform_name_first", change_first_name);
    
    function change_first_name($sublabel){
    
       return "Voorname";
    
    }

    Following is the list of all available sub-label filters:

    gform_address_street
    gform_address_street2
    gform_address_city
    gform_address_state
    gform_address_country
    
    gform_name_prefix
    gform_name_first
    gform_name_last
    gform_name_suffix

    ----------

    But if I have a text field which the label name is Money, for example and I wanted to translate it in French (Argent), how would I do it ? Because the text input field Money is not a basic field as name_prefix...

    Have a nice day !

    Posted 14 years ago on Sunday December 12, 2010 | Permalink
  2. The form field labels for simple fields such as a Text Field can't be filtered like this because they are already dynamic. The values are what you enter in the database. These filters aren't designed to be used for dynamic translations, you'd have to create language specific versions of your forms.

    Posted 14 years ago on Monday December 13, 2010 | Permalink
  3. roman.bwg
    Member

    Ok I see thanks, will create 3 forms :)

    Posted 14 years ago on Monday December 13, 2010 | Permalink