Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Yes, with a bit of programming. How do you envision this – like a form that would be filled out by the “login with Vipps” action? The details of how you want it to work matter a bit.

    Thread Starter agst

    (@agst)

    Thank you, the idea is that user can click “register with vipps” and then the registration form is filled with data from Vipps.
    The form link: https://viddakraft.no/en/stromavtaler/spot/

    Plugin Author Iver Odin Kvello

    (@iverok)

    Absolutely, we designed the plugin specifically to facilitate such usecases. We are a bit busy now, but I will write an example plugin for you that can do this and update the ticket when ready.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Just a quick update: Still very busy, but we’re about 60% finished with this now. Hopefully it will be ready next week. We’re trying to make it as generally useful for CF7 as possible.

    Thread Starter agst

    (@agst)

    Thank you Iver, I will be waiting

    Plugin Author Iver Odin Kvello

    (@iverok)

    Could you try this plugin: https://www.dropbox.com/scl/fi/aod0ragyfqoc1ogk0gu1x/wph-vipps-complete-form.zip?rlkey=ts63jkbfwnjtoob4g7ue31zee&dl=0

    It’s a bit rough but should be fully functional and can at least be a basis for further work. Basically, you will need to add annotations to your CF7 fields of the type “vipps:name” “vipps:email” to the fields you want to be auto-completed, and then add a “complete this form” button either using the Vipps Login Block or a shortcode. See the readme for details.

    Unfortunately, it isn’t possible to do this in an iframe, so the page has to be reloaded to complete the form. I’ve tried to make sure any fields present will be saved and restored on the reload.

    Sorry it took a bit of time; I had to research the CF7 plugin a fair bit to understand how that worked.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Oh, and the reason it uses ajax to fill out the form like it does is to allow for caching and so forth. So there is a slight delay but you won’t have to make cache exceptions etc.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Login with Vipps with Contact Form 7’ is closed to new replies.