• Resolved adqadq

    (@adqadq)


    Hello there,

    I would like to add hidden field to register form. Found the solution you posted on website, but not sure where this code should be pasted.

    add_action('um_after_register_fields', 'add_a_hidden_field_to_register');
    function add_a_hidden_field_to_register( $args ) {
    	echo '<input type="hidden" name="field_id" id="field_id" value="HERE_GOES_THE_VALUE" />';
    }

    Thanks for your time and help in advance,
    Regards,
    A

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @adqadq

    You can use this plugin to add the code snippets.
    https://wordpress.org/plugins/code-snippets/

    Regards,

    Thread Starter adqadq

    (@adqadq)

    Hello,

    Thanks for your reply! 😉

    I’m using Leads Builder For Any CRM Pro with WordPress website and Ultimate member plugin. What I would like to add to the WP Users Sync is two extra hidden fields which I have added in Ultimate Member. Fields are called Brand and Source of lead. Fields are added by snippet code and code is below: 
    <?php
    add_action(‘um_after_register_fields’, ‘add_a_hidden_field_to_register’);
    function add_a_hidden_field_to_register( $args ) {
    echo ‘<input type=”hidden” name=”Brand” id=”Brand” value=”ZoWy” />’;
    echo ‘<input type=”hidden” name=”Source_of_lead” id=”Source_of_lead” value=”Z | register page” />’;
    }
    At the moment after new user is registered the data is going to CRM but without these fields. Are you able to help me with this, please?

    Thanks in advance,
    A

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hidden field in registration form’ is closed to new replies.