View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
07467Feature requestsConditionspublic2021-11-15 09:04
Reporteruser11856Assigned Togalads  
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
Summary07467: Suppliment to #answernnXnnXnnn method of targetting form elements
Description

Use of the #answerNNXNNXNN id means code must be updated for all questions that are re-used, in order to re-target form elements. This is tedious, error prone, and frustrating.

The solution proposed does not suggest removing the #id, but adding an alternative for scripting targetting.

Additional Information

A possible solution: Use extra user-definable class attributes for jQuery targetting
Create a generic way for script to target a specific form element that is decoupled from that instance of questionnaire.

One way would be to provide, as one of the question attributes, an extra field for use by script.

The value entered would be rendered as an extra element attribute ie: class="myElement"

It is now easy to reuse code and questions:

$(".myElement").focus(/ some code/);

TagsNo tags attached.
Bug heat2
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

galads

galads

2021-11-15 09:03

reporter   ~67317

Hello agwd,

Thank you for suggesting a feature.

However, it seems the feature has been implemented already in the latest versions.

Please check on the latest versions and if the issue still exists, feel free to re-open the report.

kind regards,
galads

Issue History

Date Modified Username Field Change
2021-11-15 09:03 galads Note Added: 67317
2021-11-15 09:03 galads Bug heat 0 => 2
2021-11-15 09:04 galads Assigned To => galads
2021-11-15 09:04 galads Status acknowledged => closed
2021-11-15 09:04 galads Resolution open => fixed