• Resolved MisterM74

    (@misterm74)


    Hello

    I have a 2-column csv file.

    In the first column, I have a list of numbers from 0 to 1000.

    In the 2nd column, I have a list of numbers, lowercase/lowercase letters that give the right, access to the 1st column, a confirmation.

    What I’m looking for is to define all this in a registration form managed by the UM plugin, is that possible?

    Mz

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter MisterM74

    (@misterm74)

    Hello

    Not knowing how to edit my first message, here’s what I’m really looking for.

    What I’m looking for is to use drop-down fields to fetch information from the 1st column, to display the confirmation code in the second drop-down field, to create the whole thing in a registration form managed by the UM plugin, is this possible?

    Mz

    missveronica

    (@missveronicatv)

    @misterm74

    You can try this plugin “Two and Three Way Dropdown options”
    where an uploaded CSV file is used to populate the dropdowns.

    https://github.com/MissVeronica/um-three-way-dropdowns

    UM Documentation guide

    https://docs.ultimatemember.com/article/1539-choices-callback-feature-in-um-2-1

    Thread Starter MisterM74

    (@misterm74)

    I’m trying to understand how it works so far, but when I install and activate the plugin, I’m completely at a standstill. Don’t you have a tutorial that explains how to do it, because the documentation from ultimate member is vague and hard to understand, should I subdivide the file into 2, because I have a file with 2 columns and I’d like to know how to do it?

    missveronica

    (@missveronicatv)

    @misterm74

    Can you post here in the Forum a short part of your CSV file.

    Thread Starter MisterM74

    (@misterm74)

    Does this help?

    Mz

    missveronica

    (@missveronicatv)

    @misterm74

    Yes in the parent dropdown you will have the numbers from column A
    and when user selects a number from this list
    the value in column B will be displayed in the second dropdown field.

    Have you created the folder threewaydropdowns and uploaded the CSV file to
    .../wp-content/uploads/ultimatemember/threewaydropdowns/

    Thread Starter MisterM74

    (@misterm74)

    Do I have to name the columns?

    And then, once I’ve uploaded the file, what do I do?

    What should I add to my registration form?

    Kind regards

    Mz

    Thread Starter MisterM74

    (@misterm74)

    The UM::enqueue function has been obsolete since version 2.7.0! Use UM()->frontend()->enqueue() instead.

    missveronica

    (@missveronicatv)

    @misterm74

    Do I have to name the columns?

    No, you select columns A and B in the plugin settings

    And then, once I’ve uploaded the file, what do I do?
    What should I add to my registration form?

    I have tried to make screencopies of the steps for a two level dropdown.

    https://imgur.com/a/JAWrN1j

    Thread Starter MisterM74

    (@misterm74)

    I get this error when now

    Deprecated: La fonction UM::enqueue est obsolète depuis la version 2.7.0 ! Utilisez UM()->frontend()->enqueue() à la place. in /home/foxstudio/domains/testum.xxxxxxx.net/public_html/wp-includes/functions.php on line 6031
    
    missveronica

    (@missveronicatv)

    @misterm74

    The plugin is not using this function.
    Do you have any other custom coding?

    Thread Starter MisterM74

    (@misterm74)

    OK, I made a mistake, it’s not a drop-down field that I need, but a simple field. Is it possible to check simple fields or not?

    missveronica

    (@missveronicatv)

    @misterm74

    Can you explain more details about how this should work.

    Thread Starter MisterM74

    (@misterm74)

    Simple, the same process as the drop-down version, but using a text box field, which fetches data information (0001), which gives confirmation (au0800ST), all from a CSV file.

    Thread Starter MisterM74

    (@misterm74)

    With this function

    function um_custom_validate_mobile_number( $key, $array, $args ) {
    	if ( isset( $args[$key] ) && !preg_match('/^[6-9]\d{9}$/', $args[$key]) ) {
    		UM()->form()->add_error( $key, __( 'Please enter valid Mobile Number.', 'ultimate-member' ) );
    	}
    }
    add_action( 'um_custom_field_validation_mobile_number', 'um_custom_validate_mobile_number', 30, 3 );

    In the “$args[$key]” part can we use a data list?

    Because I’m trying to create a custom !preg_match for this argument “au0800ST” and it’s not working.

    Mz

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘check data csv’ is closed to new replies.