Okay
  Public Ticket #3099720
wpdatatables - do_shortcode
Closed

Comments

  •  1
    Danie Coetzee started the conversation

    I want to use wpdatatables with the var1 placeholder as a variable ...

    This the HTML:

    <br></br> <br></br> [wpdatatable id=65 var1='%xxxx%']

    <table> <tbody> <tr><td style="background-color: #ffffff" width="236"><strong>Service Provider DD Assessment</strong> <label>Service Provider Number</label>   <input id="xxxservprovidnrx" name="xxxidnr" placeholder="9999999999999" type="text">   <input type="button" style="background-color:#6D4053;color:white;" onclick="getdbindiv(null,'assess_spdd', 'xxxservprovidnrx' )" name="submit" value="Submit" /> </td></tr> </tbody> </table> <div id="assess_spdd"></div>

    This the php function:

    add_action( 'wp_ajax_assess_spdd', 'assess_spdd' ); add_action( 'wp_ajax_nopriv_assess_spdd', 'assess_spdd' ); function assess_spdd() {

    $servprovnr = strval($_POST['idnumber']); $return_string = '[wpdatatable id=65 var1='.$servprovnr.']'; echo $content .= do_shortcode("$return_string"); wp_die();

    }

    This the output:

    3984983268.png

    The second part of the output is suppose to look like the first part ... formatted and an editable table ...

    Please help

  •  1,851
    Miloš replied


    Hi, Danie 

    Sorry for the delay

    -

    Using the table HTML in our tables can be quite tricky to achieve - and this seems like a custom solution.

    Our support is very limited when it comes to custom workarounds, but we will do our best.

    I will ask our 2nd level Team for advice regarding this, as soon as they advise, i will report back for you.

    Thank you for your patience.



    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables