• Resolved caroltsai

    (@caroltsai)


    hi,

    I was wandering is there any settings/functions that I can add on to capitalise some of the record for user registration form before posting to database?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jair – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @caroltsai,

    I hope you are doing well today!

    We are checking your request with our SLS (Second Line Support) team if it is possible to provide a workaround or custom code to achieve this and will inform you accordingly.

    Thanks for the patience while we are looking into this.

    Kind regards,
    Zafer

    Plugin Support Jair – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @caroltsai,

    Our SLS team suggested the following code snippet to be used as mu-plugin.

    <?php
    add_action( 'forminator_custom_form_submit_before_set_fields', 'wpmudev_extract_field_data', 10, 3 );
    function wpmudev_extract_field_data( $entry, $module_id, $field_data_array ) {
        $form_ids = array(141); // Please change the form ID.
    	if ( !in_array( $module_id, $form_ids ) ) {
    		return;
    	}
        
        foreach ( $field_data_array as $key => $value ) {
            // $value['name'] will give the field ID like text-1
            // $value['value'] will give value of that field.
        }
    
    }

    Please make sure to change the form ID and the field IDs you want to change the contents.

    You can find more information below on how to use mu-plugins.
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind regards,
    Zafer

    Thread Starter caroltsai

    (@caroltsai)

    Hi there,

    I will try it out. Thanks

    Hi @caroltsai,

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. Note that you can still reply on this topic.

    If you have any additional questions or require further help, please let us know!

    Best regards,
    Laura

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Submit function for user registration’ is closed to new replies.