Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.

If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping

Answers may be delayed for posts that do not include sufficient information.

Prepopulate rule with access as the target?

Any help would be appreciated. I'm trying to use a prepopluate rule to change the access status to not accessible to the public. I can get this rule to prepopulate other fields, just not access and I'm not sure what I'm doing wrong. I've also tried template= 0 and template= internal_only

status_rule = {
    # what types of records does this rule apply to?
    table = ca_objects,
    restrictToTypes = [audio_event],

    # mode determines handling of existing values in target element
    # can be overwrite, or addIfEmpty
    # See the 'target' setting below and
    mode = overwrite,

    # What's the prepopulate target?
    # This can be an intrinsic field, labels or an attribute.
    # Note that if you want to target a List attribute, you have to
    # provide a valid list item idno or id for that list as value!
    # See
    target = ca_objects.access,

    # skip this rule if expression returns true
    # available variable names are bundle names
    skipIfExpression = ^ca_objects.workflow_status !~ /pending/,

    # content to prepopulate
    # (this is a display template evaluated against the current record)
    template = 56,
Sign In or Register to comment.