Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76579

Add parameters to URL activity

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76579_master
    • Hide

      Scenario 1 - Group names

      1. Access a course with groups (And groupings optionally).
      2. Create a URL activity with the base url as

        http://urlparams.com

      3. Expand URL variables and set it to have a parameter called groups and then select Group names from the variable dropdown
      4. Save the activity
      5. Open the activity with a user who is in multiple groups in this course
      6. Result: The URL has as many parameters with the group names as there are groups. For all groupings.
        1. e.g.: 

          http://urlparams.com?groups[]=<URL encoded Group name 1>&groups[]=<URL encoded Group name 2>...

      Scenario 2 - User profile fields

      1. Access the URL activity settings
      2. Enable the use of Custom profile fields and save the form
      3. Create several profile fields and populate them for a user. Only these fields can be added to the URL:
        1. checkbox
        2. menu
        3. datetime
        4. text
      4. Create a URL activity with the base url as

        http://urlparams.com

      5. Expand URL variables and set it to have a parameter called custom1 and then select one of the new custom profile fields under the User group
      6. You can repeat the previous step for other custom fields, e.g. custom2, custom3, ...
      7. Save the form
      8. Open the activity with a user who has data in these fields
      9. Result: The URL has parameters and values for each one of the configured user profile fields
        1. e.g.: 

          http://urlparams.com?custom1=<URL encoded profile field 1>&custom2=<URL encoded profile field 2>...

      Show
      Scenario 1 - Group names Access a course with groups (And groupings optionally). Create a URL activity with the base url as http://urlparams.com Expand URL variables and set it to have a parameter called  groups and then select  Group names from the variable dropdown Save the activity Open the activity with a user who is in multiple groups in this course Result: The URL has as many parameters with the group names as there are groups. For all groupings. e.g.:  http://urlparams.com?groups[]=<URL encoded Group name 1>&groups[]=<URL encoded Group name 2>... Scenario 2 - User profile fields Access the URL activity settings Enable the use of  Custom profile fields and save the form Create several profile fields and populate them for a user. Only these fields can be added to the URL: checkbox menu datetime text Create a URL activity with the base url as http://urlparams.com Expand URL variables and set it to have a parameter called custom1  and then select one of the new custom profile fields under the User group You can repeat the previous step for other custom fields, e.g. custom2, custom3, ... Save the form Open the activity with a user who has data in these fields Result: The URL has parameters and values for each one of the configured user profile fields e.g.:  http://urlparams.com?custom1=<URL encoded profile field 1>&custom2=<URL encoded profile field 2>...

      The URL activity works great for many different use cases, but we are needing to be able to configure it for specific services that will include more personalized information from the user, like their current groups and custom profile fields.

      We need to add these parameters to the URL activity:

      1. Group names (Comma separated)
      2. User profile field values

      This will help with complex URL for use, for instance, with Survey monkey.

            Unassigned Unassigned
            david.castro@moodle.com David Castro
            Mathew May Mathew May
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours
                1d 5h

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.