This topic is locked
[SOLVED]

 Popup for different fields

9/13/2011 1:11:45 AM
PHPRunner General questions
I
indigo author

Hi,
I have a members' profile table with numerous fields. During registration, only few fields are required.

For the rest of the fields, is it possible to create an event and do a popup to update them, but only just one at a time.
So a member XYZ logs in, a popup appears with field "A" to be updated.

Same member XYZ logs in again, another popup appears with field "B" to be updated.
Can this done without creating many views and pages?

Sergey Kornilov admin 9/13/2011

Just a few ideas of how you can make it work.

  1. In AfterSuccessfulLogin event you can find if any fields need to be updated. If yes, redirect user to a special profile edit page (Edit page of Users table I guess).
  2. On this page, based on current user group, hide certain fields.

    Example: http://xlinesoft.com/phprunner/docs/hide_controls_on_add_edit_pages.htm
  3. In AfterEdit event redirect user back to your application i.e. to the menu page.
    Displaying this special page in popup will be a bit more difficult. Probably this approach will work just fine.