Skip to content

Lists

Lists hold the records field officers pick from in a form, such as farmers, local groups or gardens. This guide covers making a list, loading its records from a file, and deciding which officers get it.

You need a login to the Salma Console. Every Console user in your organisation can make and load lists and assign them.

  • A list reaches a phone only through a form that uses it. Add a list question to a form (Pick a farmer in the form builder today) and publish the form. A list no form uses stays on the server.
  • The officer must also be assigned the list. If they are not, the form still opens, but that question has no records to pick from.
  • A list inside another list (for example Gardens inside Local groups) brings its parent list with it, so officers can pick a group first.
  • Phones get changes at their next sync. Records that are removed, or no longer assigned to the officer, leave the phone at that sync.
  1. Click Lists in the left menu, then New list.
  2. Give the list a Name, for example Gardens.
  3. If the list sits inside another list, choose it under Inside another list. Load the parent list’s records first.
  4. Choose Who gets this list:
    • Every officer: every field officer gets it.
    • The officers I assign: only officers you tick on their field officer sheet get it.
  5. Choose Which records they see:
    • Every record: each officer who gets the list sees all of it.
    • Only the records assigned to them: each officer sees the records with their name in Assigned to.
  6. Click Make list.

Nothing is chosen for you. Salma asks for both choices before it makes the list. You can change them later on the list’s General tab.

  1. Open the list and click Load a file.
  2. Choose how to load:
    • Add and update: new records are added and changed ones updated. Records not in the file stay.
    • Replace the whole list: the file becomes the whole list. Records not in the file are removed from phones. They are kept on the server, so old answers still show their name.
    • Update assignments only: only Assigned to changes.
  3. Click Download template. Fill it in, then save it as CSV UTF-8. Keep the template’s column names exactly as they are; their order does not matter.
  4. Choose the file and click Check. Nothing changes yet.
  5. Read the result. When it looks right, click Load. Load applies exactly what Check showed. If the list changed in between (someone else loaded it, or changed its officers), Load stops with “This list changed since you checked the file. Check it again.”
  6. A Replace the whole list that removes records asks you to tick “Remove N records from phones” first. The button then reads Load and remove N records.
Column What to put in it
Record ID Your own ID for the record, at most 80 characters, once per file. Keep it the same between loads: Salma matches records by it.
Name What officers see on the phone, at most 250 characters.
Parent record ID Only for a list inside another list: the Record ID of the parent record.
Assigned to Only when officers see only their own records: the officers’ Officer IDs (or exact names), separated by ;. Blank means nobody. A value that matches more than one officer (for example one officer’s Officer ID and another officer’s name) skips the row: change the Officer ID or the name on the officer’s page so each value matches one officer only.

A file can be at most 10 MB and 50,000 rows. A cell can have at most 1,000 characters. Every row needs as many cells as the header; a row with more or fewer is skipped.

  • How many records would be added, updated and removed, how many assignments change, and how many rows are skipped.
  • How many records each officer would hold.
  • A warning when an officer would hold records whose parent record they cannot see, for example a garden whose local group is not assigned to them. On the phone such a record has no parent to pick first. Assign the parent records too, or give the garden to someone else.
  • Each skipped row with its problem (the first 200, with the total). A skipped row is not loaded, and its record stays as it was. A Record ID that appears twice skips every row with it. Fix the rows and load the file again.

Use the template’s columns. You can add columns: each extra column becomes a field of the list, such as Village, which forms can show or use to fill in answers. A file missing a required column is refused, and the Console lists the columns it needs. A file saved with ; between columns gets a hint to save it with commas.

A file that is not well-formed CSV is refused as a whole, with the line where reading stopped. This usually means a quote mark (") that is not closed. Nothing is loaded from such a file.

If Record IDs look like a spreadsheet dropped their zeros at the start (123 where the list has 00123), Check says so. Format the Record ID column as Text and save the file again, or the records would be removed and added again as new ones.

The list’s Load history tab shows each load: when, which file, how it was loaded, by whom, and the counts. Open a load to see its skipped rows. The last 100 loads are kept. Files that were checked but never loaded do not count, and are cleaned up later.

  1. Click Field officers in the left menu, then the officer’s name (or Add field officer).
  2. Under Lists this officer is assigned, tick the lists this officer gets.
    • Lists for every officer are already ticked and greyed.
    • Ticking a list also ticks the list it sits inside, greyed with “Needed by …”. You can untick that parent only after unticking the lists that need it.
  3. Click Save.

The Officer ID on the same page is what Assigned to matches. Give each officer a different one.