Our library loves this module and is using it for several of our pages. There is one issue that confuses our users: there is no button to remove a Q/A pair when they no longer need it. I know that they can remove the text from a Q/A pair and it will disappear from the list when they save, but this is very confusing to many of our users. Can a button be added to remove Q/A sets to make it operate similar to many other items that allow multiple instances of a field.

Comments

kwfinken created an issue. See original summary.

mowings1’s picture

Are there any plans to add this feature? These accordions have been great for our university website, but the process of deleting them is a bit confusing for less tech savvy users.

pifagor’s picture

Issue tags: +epam-contrib-2018
artemboiko’s picture

Assigned: Unassigned » artemboiko
tim berners lee’s picture

Assigned: artemboiko » tim berners lee
Status: Active » Needs review
StatusFileSize
new1.61 KB

I made a patch, try it

alex_optim’s picture

Looks good.

pifagor’s picture

  • pifagor committed feb1883 on 7.x-1.x authored by Andrew Rymar
    Issue #2992587 by Andrew Rymar, kwfinken, pifagor, artemboiko, mowings1...
pifagor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

slydevil’s picture

Assigned: tim berners lee » slydevil

The patch does not address the issue.

Firstly, drupal_add_js() at the top of the file causes very weird jquery issues.

Secondly, if there are required fields on the form and they are blank, this patch simply triggers the validation on those fields without removing the fields that it is supposed to.

See #3096043: Unable to delete a question for the proper way to implement the remove button.

slydevil’s picture

Assigned: slydevil » Unassigned
ahaomar’s picture

Guys i am looking for same solution for my website. kind if some one having recent solution for drupal 8 please guide me