Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a form on power portal that I have been trying to add an autocomplete function to the text field. I need the options to come from a table in the dataverse.

I think it is in an XML file. How do you source this? Thanks for any help.

What I have tried:

$(function () {
    $("#pn_deactivatepositionnumber").autocomplete({
        source:
        $.ajax({
            method: "GET",
            url: "",
            data: { 
                id: "#cr598_position"
                },
            dataType: "html"
        }),
 
        request:done(function( msg ) {
         $( "#log" ).html( msg );
        }),
 
        request:fail(function( jqXHR, textStatus ) {
         alert( "Request failed: " + textStatus );
        }),        
     });
});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900