View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15876 | Feature requests | Plugins | public | 2020-02-14 07:23 | 2020-02-19 15:57 |
Reporter | DenisChenu | Assigned To | |||
Priority | none | Severity | feature | ||
Status | new | Resolution | open | ||
Summary | 15876: afterValidateQuestion event to allow error or relevance by plugins | ||||
Description | function _ValidateQuestion can be really interesting to extend. | ||||
Additional Information |
My idea was :
| ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Story point estimate | |||||
Users affected % | |||||
@ollehar : can be accepted without a plugin and a test ? I think it's needed for plugin since some year ... for specific validation (for example validate a question via an API) I can use it in place of 15873: setVariableExpressionEnd have lack of system to udate question part |
|
Use-case? |
|
Oups ... sorry
Maybe : create an event here : https://github.com/LimeSurvey/LimeSurvey/blob/03840d3441aa0eb6d2d2bf83d754b591798a6803/application/helpers/expressions/em_manager_helper.php#L6278 |
|
My idea is allowing plugin to update some core part : hidden, etc ... Maybe fix 15873: setVariableExpressionEnd have lack of system to udate question part is better ? |
|
PS:
:) |
|
OK :
See setVariableExpressionEnd (and fix)
Think it can be done with Expression manager function. sample There are no way to set hidden/relevance/etc ... more dinamically (must be in setVariableExpressionEnd) |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-02-14 07:23 | DenisChenu | New Issue | |
2020-02-14 07:25 | DenisChenu | Note Added: 55993 | |
2020-02-14 11:03 | ollehar | Note Added: 56004 | |
2020-02-14 11:20 | DenisChenu | Note Added: 56009 | |
2020-02-14 11:22 | DenisChenu | Note Added: 56010 | |
2020-02-14 11:23 | DenisChenu | Note Added: 56011 | |
2020-02-19 15:57 | DenisChenu | Note Added: 56098 |