View Issue Details

IDProjectCategoryView StatusLast Update
13538Bug reports[All Projects] Pluginspublic2018-06-26 09:49
ReporterDenisChenuAssigned ToDenisChenu 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.5.x 
Target VersionFixed in Version 
Summary13538: Unable to update registerForm with beforeRegisterForm
Description

Previously : we have way to put what we want in registerForm

Using $this->getEvent()->set('registerForm',"A form in HTML"));

But not able currently registerForm didn't return a form but an array used in twig

Steps To Reproduce


I can send a broken plugin … :/

Additional Information

I really think we need to be allowed to show anything to user, maybe allowed to replace twig view by own ?
Currently : i don't see a way to create own register form, i can only add something after form (unsure, not tested).

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.5.4 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database & DB-Versionnot relevant
Operating System (Server)not relevant
Webserver software & versionnot relevant
PHP Versionnot relevant

Relationships

related to 13536 closedDenisChenu Feature requests Unable to use twig file from Plugin 

Activities

DenisChenu

DenisChenu

2018-03-26 20:07

developer   ~47224

Last edited: 2018-03-26 20:08

View 2 revisions

Broken plugin : https://gitlab.com/SondagesPro/registerQuick/tree/brokenLS3

Need a way to show :

  • Own form
  • Any content (with or without twig ? Can force twig, not an issue for me)
LouisGac

LouisGac

2018-05-16 13:40

manager   ~47643

I agree we should fix it.
I'm curious: is there anything you can do with beforeRegisterForm that you can't do by updating the register form twig views?

DenisChenu

DenisChenu

2018-05-24 18:19

developer   ~47803

With twig views : need to be in themes, currently no way from plugin.

But : in 2.XX getRegsiterForm send the HTML (@return string) for {REGISTERFORM} but now getRegisterForm function send @return array : data to be send to registerForm …

Function signature updated

DenisChenu

DenisChenu

2018-06-26 09:49

developer   ~48294

Manual updated : https://manual.limesurvey.org/BeforeRegisterForm

Issue History

Date Modified Username Field Change
2018-03-26 19:56 DenisChenu New Issue
2018-03-26 19:57 DenisChenu Relationship added related to 13536
2018-03-26 20:07 DenisChenu Note Added: 47224
2018-03-26 20:08 DenisChenu Note Edited: 47224 View Revisions
2018-05-16 13:39 LouisGac Assigned To => LouisGac
2018-05-16 13:39 LouisGac Status new => assigned
2018-05-16 13:40 LouisGac Note Added: 47643
2018-05-23 13:02 LouisGac Assigned To LouisGac => DenisChenu
2018-05-24 18:19 DenisChenu Note Added: 47803
2018-06-26 09:49 DenisChenu Status assigned => closed
2018-06-26 09:49 DenisChenu Resolution open => fixed
2018-06-26 09:49 DenisChenu Note Added: 48294