Okay
  Public Ticket #1764400
Get value of a row (cells)
Closed

Comments

  • Giang Lê Hoàng started the conversation

    1. Can we put a code (Shortcode, php) on a cell and get value from another cell in the same row (text, digit…). E.g: I want to add a button which will activate a AJAX code to change another cell’s data (in same row)

    2. Is there any hook...so I can get value (cells) of row nth (row 1,2,3...)

    Many thanks!

  • [deleted] replied

    Hi Giang Lê Hoàng,
    Thank you for your inquire.

    1. Can we put a code (Shortcode, php) on a cell and get value from another cell in the same row (text, digit…). E.g: I want to add a button which will activate a AJAX code to change another cell’s data (in same row)

    We are using Datatables as one of our fronted engine and you should be able to find a way to get row and cell data for selected row with their built in methods. We do not have shortcode which will return a single cell value although you can use shortcodes in cells (by enabling them on Settings page)

    2. Is there any hook...so I can get value (cells) of row nth (row 1,2,3...)

    List of all our built in hooks could be found here - Documentation. I am not sure what are you trying to achieve but there is a filter which allows you to edit the data after they are submitted from frontend and before they are saved to the database  - wpdatatables_filter_frontend_formdata( $formData, $tableId )

     

  • Giang Lê Hoàng replied

    Okie, thank you!