Table 1 = There are two columns: Name - Contact Phone (Photo 1)
Table 2= Another table (Photo 2) with many column, 2 of them are Name - Contact Phone
Now, I want every time create a new row in Table 2, after select column Name = Doãn Quốc Huy, the column Contact Phone automatically get value = 082.222.2424 as in Table 1 without inputing.
Can we do that with wpDatables? if not can you guide me direction for extra coding...
This can be achieved using Foreign Keys. Please note, though, that the first table should have a unique auto-increment ID column, so each user has its own ID to which the foreign key will be linked.
Please feel free to download the templates and recreate the example table from the documentation in the link above to get the look and feel of how a Foreign Key table works.
Hi,
I have 2 tables:
Now, I want every time create a new row in Table 2, after select column Name = Doãn Quốc Huy, the column Contact Phone automatically get value = 082.222.2424 as in Table 1 without inputing.
Can we do that with wpDatables? if not can you guide me direction for extra coding...
Thank you!
Hello Giang Lê Hoàng.
Thank you for your purchase.
This can be achieved using Foreign Keys. Please note, though, that the first table should have a unique auto-increment ID column, so each user has its own ID to which the foreign key will be linked.
Please feel free to download the templates and recreate the example table from the documentation in the link above to get the look and feel of how a Foreign Key table works.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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