Mobile Builder: models have no model actions?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
Just making sure I'm not missing something. I don't see a place to include model actions for mobile page models.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
You're missing something. Not sure it's Skuid related though. :P


Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
This is all I see under actions:



Clone or Remove.

When I click clone, I get a new blank model.


I'm looking for something like this: 
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Oh! Yeah! nvm. Not in the page builder.
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Actually Jim is right, the "Actions" Pat is referring to are "Clone" and "Remove" --- but the Model Actions Jim is referring to are very different.

You cannot add Model Actions to Models through the Mobile Composer, at this point. However, there's 2 workarounds:

1. The Deck component in Mobile has the concept of "After Save Actions" --- so if the Actions you're looking to run need to be run whenever a Model is saved, you might be able to use Deck's after-save actions to achieve this.

2. You can create your Model Actions on a similar Model in the Desktop Page Composer, and then copy the XML for the Model Actions from your desktop page to your mobile page. Definitely not ideal, but functionally it should work.