Creating dependent menus with Moodle Database activity. William Lu

Similar documents
Creating dependent menus

Creating and using Moodle Rubrics

Microsoft Office Illustrated. Using Tables

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

Sorting and Filtering Data

Numbers Basics Website:

4D Ajax Framework 1.1 ADDENDUM

Veco User Guides. Grids, Views, and Grid Reports

Xerte. Guide to making responsive webpages with Bootstrap

SECONDARY SCHOOL ANNUAL EXAMINATIONS 2008 DIRECTORATE FOR QUALITY AND STANDARDS IN EDUCATION Educational Assessment Unit

CenterStone. Reports User Guide. Manhattan Software Inc. World Leading Real Estate, Asset & Facilities Management Software.

ORBIT User Manual v 1.0 July 2012 ORBIT USER MANUAL. Page 1 of 24

Overview of the Adobe Dreamweaver CS5 workspace

SmartView. User Guide - Analysis. Version 2.0

IDEAL DataCENTER Software. Data Mining Features

Site Owners: Cascade Basics. May 2017

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

How to set up a local root folder and site structure

Microsoft Office 365 includes the entire Office Suite (Word, Excel, PowerPoint, Access, Publisher, Lync, Outlook, etc ) and an OneDrive account.

User Interface (Windows Edition)

Faculty Guide to Grade Center in Blackboard 9.1

Grouping and Sorting

Once file and folders are added to your Module Content area you will need to link to them using the Item tool.

ICT1512 Introduction to Interactive Programming. Assignment 7 Discussion

GOOGLE SHEETS TUTORIAL

How to add content to your course

Sales Order Configurator

Smart Connection 9 for InDesign Working With Sticky Notes

IP4 - Running reports

ONE STEP CHECKOUT USER GUIDE

Working with Data in Microsoft Excel 2010

Lesson 19 Organizing and Enhancing Worksheets

Quick Guide for Excel 2015 Data Management November 2015 Training:

My Research Portal General User FAQ Updated 12 Nov 2013

Creating a Directory with a Mail Merge from an Excel Document

Product Manager Toolkit

SAS Web Report Studio 3.1

Table Basics. The structure of an table

WebLink Manual EZ-CAMP2

Login: Quick Guide for Qualtrics May 2018 Training:

Enterprise Timetabler Beginners Training Worksheet 1

Sorting your Database

ICDL & OOo BASE. Module Five. Databases

Using Microsoft Excel

Introduction Accessing MICS Compiler Learning MICS Compiler CHAPTER 1: Searching for Data Surveys Indicators...

A Quick Guide to Using Moodle version 2.6 Faculty Edition

Frequency tables Create a new Frequency Table

FEATURE INDEX TAB MIX PLUS: LINKS... 3 TAB MIX PLUS: EVENTS TAB OPENING... 4 TAB MIX PLUS: EVENTS TAB FOCUS... 5

SpagoBI Worksheet Engine. Alessandra Toninelli 2013/11/13 11:58

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step.

Quick Guide Copyright Bureau van Dijk 2010 Last updated September 2010

A Guide to Quark Author Web Edition 2015

K Hinds Page 1. Information Communication Technology Microsoft Access

The software shall provide the necessary tools to allow a user to create a Dashboard based on the queries created.

Compu-Word. Term (3 rd February 31 st March) Week 1: MicroSoft Word Fillable Forms

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

SAS Studio: A New Way to Program in SAS

Drupal Cloud Getting Started Guide Creating a Lab site with the MIT DLC Theme

Adding Pages. Adding pages to your website is simple and powerful! In just a few minutes you can create a page that: Highlights a special event

Excel Tables and Pivot Tables

AGENT123. Full Q&A and Tutorials Table of Contents. Website IDX Agent Gallery Step-by-Step Tutorials

User pages for RM Portico

Understanding Acrobat Form Tools

SAMPLE - NOT LICENSED

Advanced Training Manual: Surveys Last Updated: October 2013

Digication eportfolio Student s Guide (Last update: 8/2017)

User Guide For LabCollector Workflow Manager

Working with PDF s. To open a recent file on the Start screen, double click on the file name.

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

FileMaker Pro. Tutorial

Business Insight Authoring

Lesson 1 using Dreamweaver CS3. To get started on your web page select the link below and copy (Save Picture As) the images to your image folder.

BeetleEye Application User Documentation

Newforma Contact Directory Quick Reference Guide

Engage Meeting Manager. User guide

PROSPECT USER MANUAL

Intellicus Enterprise Reporting and BI Platform

CONTENTS. What is Moodle? Logging in to Moodle Introducing the Workspace Customising the Workspace... 8

P3e REPORT WRITER CREATING A BLANK REPORT

Advanced Content Manager 2 User Guide

User Guide. Web Intelligence Rich Client. Business Objects 4.1

PlayerLync Forms User Guide (MachForm)

Using Tables, Sparklines and Conditional Formatting. Module 5. Adobe Captivate Wednesday, May 11, 2016

Microsoft Word 2013 Working with tables

Basic Intro to ETO Results

Documentation for the new Self Admin

MICROSOFT EXCEL Understanding Filters

Tabular Building Template Manager (BTM)

To complete this workbook, you will need the following file:

MiniBase Workbook. Schoolwires Centricity2

Report Overview An explanation of the report overview page and how it assists in creating and manipulating your report

Creating a Mail Merge Document

Moodle Morsels from Sandy & Inkie. b. Click (Log in) on the upper right c. You will use your stpsb login, which is how you login to a computer

Table of contents. Ajax AutoComplete Manual DMXzone.com

As part of our commitment to continuously updating and enhancing our fundraising system, we are thrilled to announce our latest enhancements.

Layout and display. STILOG IST, all rights reserved

AudienceView: How to create a Digital Behaviour Report

Product Page PDF Magento Extension

Microsoft Access 5: Reports & Other Useful Functions

Logging in to Skyward

Transcription:

Creating dependent menus with Moodle Database activity William Lu

Hello, everyone My name is William. In this session, I will show you how to create a dependent menu with Moodle Database activity. 2

Sometimes, when you collect information with a Database form in Moodle, the 'Add entry' page shows many fields.! If this includes some non-compulsory fields, then you can use a dependent menu to reveal relevant fields only. 3

For example, to create a form listing all countries, you can use a menu field to list the continents first.! After the user chooses "Europe", the selection in Field 2 "Country" is reduced to the countries within Europe. 4

In Moodle2.9, a Database field can be made compulsory. However, if you are still using Moodle2.8 or lower version, a dependent menu can make some fields 'act' as compulsory fields. 5

In this session, I will create a Dependent menu with Moodle Database activity from scratch, then add JavaScript and CSS to the Add template. 6

Even if you ve never created a Database activity before, by the end of this session, you ll be a pro :). 7

HOW IT WORKS" Dependent menu example! 8

Add entry Continent field only Other fields are hidden Save buttons are hidden 9

Add entry Select a continent from the drop down menu 10

Add entry Then, a country field revealed." Select a country from the drop down menu.! 11

Add entry Then, a city field is revealed." Enter city into the text field.! 12

Add entry When the first letter of a city s name is being entered, " a sector field revealed 13

Add entry Select sector(s) from the multi section drop down menu Then a comment option revealed 14

Add entry Select No from the drop down menu Then the Submit button is revealed 15

Add entry Or, select Yes from the drop down menu Then a text field is revealed 16

Add entry When the first letter of comment is being entered, the Submit button revealed 17

STEP 1"! Create a New Database Activity 18

Add a Database activity 1 Turn editing 3 2 on Add an activity or resource Select 'Database' 4 Add 19

Edit settings 1 Title 2 Description 3 Save

Create fields Create a new field Or choose a preset 21

Create a menu field Important Not important 22

Create a Multiple selection menu field Important Not important 23

Add a text field Important Not important Un-tick 24

Select default order All fields need to be added for this sample database Selecting a 'Default sort field' will change the order of" 'View list " and " View single "! Changing from Ascending to Descending will list the latest entry on top 25

STEP 2" Edit Templates!

Edit 'Add template' Moodle has kindly created a table layout for us to start with." The table layout needs to be changed to DIV layout."! Disable editor Add id s to each DIV! which going to be hidden. 27

Edit 'Add template' Create a customised Submit button Disable editor Add CSS to hide Moodle default buttons 28

Add entry All country fields are listed Comments option and field are displayed Submit button is displayed 29

Edit 'Single template' Disable editor Moodle has kindly created a table layout for us to start with." Some table cells just need to be merged.! 30

View single After click the Submit button, then, select the View single tab 31

Edit 'Search template' Moodle has kindly created a table layout for us to start with."! Not much to change. 32

Advanced Search Note that if there is not an entry yet, the search field won t be available 33

Edit 'List template' Table Header Moodle has kindly created a table layout for Repeated Table rows us to start with."! Disable editor The table code needs to be separated into three parts Table Footer 34

View list Table Header Row Repeated Table rows 35

STEP 3"! Use JavaScript for 'Add entry' form 36

JS for 'Add template' At start Hide all fields except the first drop down menu Continent Disable editor Get Element by ID Display=None 37

JS for 'Add template' Hide all country fields when a selection of When a continent is selected Form ID continent changed Event=onchange Function Hide all fields when an item is selected Get Element by ID Display=None 38

JS for 'Add template' Number of item s order (automatically set when field is defined) is used to control fields revealed when it is selected Get Element by ID Define number of fields to be revealed each time Disable editor 39

' e t a l p m e t d d A ' r o f JS When a country is selected Get element by field ID Event=onchange Form ID Reveal the City field Event=onkeyupe Event=onchange Reveal the Say field Reveal the Sector field 40

JS for 'Add template' When a comment Number of item s order (automatically set when field is defined) is used to control fields revealed when it is selected Get Element by field ID option is selected Event=onchang Form ID Define number of Reveal the Submit button fields to be revealed each time 41

JS for 'Add template' When a comment text is entered Get Element by field ID Event=onkeyup Form ID Reveal the Submit button Submit form function 42

FREE DOWNLOAD"! Please download the presets and this presentation s PDF file from " https://moodle.net/mod/data/view.php? d=1&rid=141 43

Use preset Choose a preset 44

Use preset Choose Preset Nothing to change, 1 Drag and drop preset zip file just select 'Continue' 3 2 4 Select 'Add entries' to start 45

More example 1: Extra fields 46

Add entry Show 2 fields and an option menu Other fields are hidden 47

Add entry After select Yes 2 more fields are revealed 48

View single Empty fields are hidden 49

JS for 'Single template' The table layout needs to be changed to DIV Disable editor layout."! Add id s to each DIV that is going to be hidden. If content is empty display = none 50

More example 2: Optional fields 51

Add entry Show common fields Optional menu Show common fields 52

Add entry After selecting the Material After selecting the Material Relevant fields are revealed Relevant fields are revealed Empty fields will be hidden in View Single 53

JS for 'Single template' The table layout needs to be changed to DIV layout." Add id s to each DIV that is going to be hidden.! Disable editor If content is empty display = none 54

ISSUES" The dependent menu won t work at all, if JavaScript is disabled in user s browser settings.! All fields will be revealed straight away, there ll be no error message on the Moodle page. 55

The browser will show a warning icon - users must click on the icon to allow JS. 56

Any Questions? 57