DMXzone Bootstrap 3 Components Support Product Page

Answered

dynamic link to modal form

Asked 07 Jun 2017 14:21:12
1
has this question
07 Jun 2017 14:21:12 Jacques H posted:
I have been working on a list with a link to an update form in a modal. I seems that it is not possible to make that link dynamic, do the form will fill with the appropriate database info? Should I use lightbox instead?
www.ssdom.nl/content/aanmeldingen2017.php

Replies

Replied 07 Jun 2017 14:42:09
07 Jun 2017 14:42:09 Teodor Kuduschiev replied:
Hello Jacques,
You need a detail region inside the modal in order to change its value, when clicking on a repeat region value.
Replied 08 Jun 2017 12:52:01
08 Jun 2017 12:52:01 Jacques H replied:
Ok, have it working now. Up to the next challenge:
After updating the record, the form will fill with the data from the the first record instead of the originally selected record. How can I change it to show the proper record?

Replied 12 Jun 2017 07:14:13
12 Jun 2017 07:14:13 Teodor Kuduschiev replied:
Hi Jacques,
Unfortunately it is not possible to keep the current record, as you are reloading the data and the detail region resets. You could just close the modal automatically, on update.
Replied 12 Jun 2017 08:38:13
12 Jun 2017 08:38:13 Jacques H replied:
Hi Teodor. I used "goto URL aanmeldingen 2017.php" after update. It closes the window as well

Reply to this topic