Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #3367541
Can a website user check boxes specific to them and have them save?
Closed

Comments

  • Kyra started the conversation

    I have a wpdata table with 300 records. Each record is a "dog trick." What I'd like, is for each user to be able to checkmark several tricks that they are working on. I'd like that data saved, so when they return to the website a month later, their checkmarks are still there. Is there any way to accomplish this?

    Attached files:  Untitled-1.png

  •  1,692
    Miloš replied

    Hi, Kyra.

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    The only way to render a checkmark symbol/image in our tables is with Custom HTML.

    You could manually try to make custom HTML and CSS, but in my opinion it is much easier to just find a free image of a checkmark that you can use, and use the link/URL path to that image,

    then the image will render in a String Cell of our tables.

    -

    For example, in my table, if i edit a cell and set it to one of our image paths like this :

    <img src="https://wpdatatables.com/wp-content/uploads/2021/07/icon-yes.png" width="20" height="20">
    

    In my String Column  of a table, it looks like this :

    5019838020.png

    But for editing, it gets a bit tricky, with our current capabilities.

    To go in more details for your use-case, i did some testing and the best i could come up is to add a String Column to and Editable Table, such as if you have a Manual Table.

    First set the Editor Type of this column as "One Line Edit",  this way you can input one row of data with this custom HTML of a checkmark image.

    1779291886.png

    Then, add one row of dummy data with this image path ( The safest will be to download this / or any other checker image, and save it in your WP Media Library, then past the URL from your library inside the HTML img source tag).

    After that, you can set the Editor Type to "Single value selectbox",

    and allow to add an Empty Value, like in my screenshot.  ( Make sure to also set number of possible values to "all", as we have a small bug right now, if we set to a fixed value there)

    7453171021.png

    Now, when a user tries to edit this field, they will get two choices,  the custom HTML for your checker image,

    or a blank value.

    9555082435.png

    If they choose the one with the HTML "img src" the checker will render in the cell.

    -

    Alternative approach can be to set up a value of "yes", or "1" or anything else like that.

    Then you can add a Conditional Rule to this Column, in Conditional Formatting tab,

    like "if the cell value is yes, then transform it to checker image".  Like this screenshot :

    9617656259.png


    If you try the second method, you won't need that "one row of dummy data",

    but you can set a predefined possible value of editing as "Yes",  in the Column settings/Data tab,

    and allow an empty value for the selectbox.

    Then a user will see possible value of "blank" or "Yes",  for each trick,

    if they choose "Yes" - it converts the cell to the checkbox.

    3070465371.png


    3876060365.png

    -

    2. In regards to each user having different checkmarks set for themselves,

    then when they come back later - their checkmarks are still there,

    i did not fully understand this point.

    -

    If you mean to have one same table, and same rows - while different users would see the same cell checked when user A logs in,

    while if user B logs in, he sees the same row but without a checkmark;

    something like that is not currently possible.

    If you mean to achieve this, for same "row ID" to show different data for different users,

    Please feel free to search on our suggestions page

     to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there,  and as more people vote, the feature will move higher on the priority list.

    You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    -


    Or, if you simply mean for each user to have their own rows of data, and to allow them to only see and edit their rows,

    you can try our feature for this as explained on this Documentation.

    Let me know if that helps, and if you meant to achieve something different, please elaborate a bit more on that point.

    Thank you.


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    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