Problem/Motivation

In the Lesson form, Number of Random Activities should only be visible if Random activities is selected in the Randomize activities field.

Steps to reproduce

Create a lesson. Noticed that the Number of random activities field is always visible. It should only be visible if Random activities is selected in the Randomize activities field.

random activities in lessson form

Proposed resolution

Use states API to hide the hide the Number of random activities field per the above logic.

Remaining tasks

Review PR.

User interface changes

the Number of random activities unless Random activities is selected in the Randomize activities field.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
random_activities.png41.52 KBdinarcon

Issue fork lms-3568889

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dinarcon created an issue. See original summary.

dinarcon’s picture

Issue summary: View changes
Status: Active » Needs review

Merge request ready for review.

graber made their first commit to this issue’s fork.

graber’s picture

Status: Needs review » Fixed

Why haven't I noticed this before the last release?

Thank you Mauricio!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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