This site has been archived. Please visit help.fulcrumapp.com for our new support documentation and contact information.

Data events and web interface

phil's Avatar

phil

08 Oct, 2016 04:41 AM

Hi Folks,

We have a data event in an app and it appears that the data events do not work when adding records on the web interface. Can you confirm this?

Cheers - Phil

  1. 1 Posted by phil on 08 Oct, 2016 04:44 AM

    phil's Avatar

    http://www.fulcrumapp.com/help/data-events/ - this seems to suggest its available on both web and devices but http://developer.fulcrumapp.com/data-events/intro/ seems to suggest its only available on devices?

  2. 2 Posted by Bryan McBride on 08 Oct, 2016 04:50 AM

    Bryan McBride's Avatar

    Hi Phil,

    Data Events should work on both web and mobile, but you may have found a bug or platform nuance. It's likely an issue with your particular implementation. Would you mind sharing the code or you can email me directly at [email blocked] and I can take a look.

  3. 3 Posted by phil on 08 Oct, 2016 04:54 AM

    phil's Avatar

    Hi Bryan,

    Code as below to update parent status depending on status of child record.

    ON('change', 'contact_records', function(event) {
      var lastStatus = LAST(REPEATABLEVALUES($contact_records, 'status_of_contact'));
    SETSTATUS(CHOICEVALUE(lastStatus));
    });

    Status is not enabled in the app (I am assuming this is not required)

    Cheers - Phil

  4. 4 Posted by Bryan McBride on 08 Oct, 2016 11:24 AM

    Bryan McBride's Avatar

    Hey Phil,

    I'm pretty sure status needs to be enabled for SETSTATUS to work. You also need to set the value to a valid status option (which configures the color). Try enabling status and making it hidden if you don't want users to manually change it.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac