Comments 1Danie Coetzee started the conversationAugust 8, 2022 at 11:28amI 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: The second part of the output is suppose to look like the first part ... formatted and an editable table ...Please help 1,851Miloš repliedAugust 10, 2022 at 10:59amHi, 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 supportTry 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 | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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 Sign in to reply ...
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:
The second part of the output is suppose to look like the first part ... formatted and an editable table ...
Please help
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 | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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