We often get the question from developers: "I'm not getting any errors, but I'm not seeing the contracts on the page." A common issue with trying to load Groups into is a setting that is not enabled by default in Groups. Double check the following issues if you think you've set up everything properly but you're still not seeing your contracts/checkboxes load on the page.

"Display All Contracts" in Group settings should be enabled

When configuring your Group, "Display All Contracts" is not enabled by default. What this means is that your contracts typically will not display until:

  1. A signer ID has been set either by listening to the Signer ID Selector or by calling _ps('set', 'signer_id', signer_id);
  2. Your signer ID passed to PactSafe has not accepted the latest version(s) of the contract(s) you're trying to present to the user

The contracts will not load on the page unless both of these are in place.

"Display Contracts Immediately" should be enabled

When "Display Contracts Immediately" is disabled, your Contracts will not show until the Signer ID has been set (see above).

Container Selector or Signer ID Selector hasn't been set

Two necessary pieces are required to start successfully sending acceptance to Contracts:

  1. Signer ID Selector: That is the input field (<input id="signer-id-selector" />) set to assign the Signer ID to a signer.
  2. Container Selector: This is where the contracts will be injected onto the page (<div id="container-selector"></div>)

If both of these aren't defined either in the Group configuration like so...

... then you can also define it in code using the following:

// put the global snippet before this
_ps('load', 'your-group-key', { container_selector: "container-selector", signer_id_selector: "signer-id-selector" });

That should give you some good tips to test out. Still having problems? Submit a ticket!