• iandor

    (@iandor)


    Hayhay!

    The "Autocomplete value seems invalid." function isn’t in the code, just the message.

    If you add a "Label|Value" datas to field and enter text out of list then the value will be valid and the value will be the text.
    It’s wrong for me.
    e.g. the valid data is "python|11" and the text is asm then the value will be asm but i need a number

    In cf7-autocomplete.php file at Line 88 after

    source: <?php echo json_encode($value); ?>

    with comma i add this code:

    autoFocus: true,
    change: function (event, ui) {
    	if (!ui.item) {
    		this.value = "";
    	}
    }

    It’s good for me but not optional…

    https://wordpress.org/plugins/contact-form7-autocomplete/

  • The topic ‘Value validation function problem’ is closed to new replies.