How to make a process model user action open in modal

Certified Associate Developer

Hi,

I'm trying to make a form that involves quite a few layers of child records. Let's call the record types formHeader, lineItem, and itemEvent. The important part is that there are many itemEvents in each lineItem, and there are multiple lineItems in the formHeader.

The idea is that you fill out the form by completing the header portion, and then there's a nested table where you can add lineItems and itemEvents. One of the issues is that those are quite detailed, so I wanted to open a modal where in step one I fill out a lineItem and then on step two I create its itemEvents in a table format, much like how related actions seem to work.

The issues I'm running into are some of the stipulations. Some of the info on lineItems reflect information in the formHeader and is dependent, so I need the context of the formHeader to be available, so a create action doesn't really do the trick.

I tried to get around it by creating an update related action on the formHeader and it's related lineItems and just changing all the record types to lineItem and itemEvent instead, but that doesn't seem to be getting me anywhere. I can't get the record types to work right and I can't get it to create rather than update, though I can't really tell why. My plan was going to be to just force the user to submit the formHeader and having that take the user to a readonly version of the form on the record view of the newly created formHeader, with buttons to create a lineItem and its itemEvents (this is fine since the user shouldn't be editing anything in the formHeader once they start making lineItems anyways).

Any help or suggestions would be greatly appreciated. Trying my best to get good at this platform :)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    My old fallback for adding or editing line-items where they have complex requirements or validations is to simply put the item list in a read-only grid, and make the user click an "edit" control on the grid which will then show the expanded items for just that row in a little section below the grid, complete with its own buttons including "save" and "cancel".

    I'm not sure what-all you're trying to do with "form headers" or whatever, but following my approach is usually at least one path to success.  Sadly there isn't a way to arbitrarily open pop-up windows/tasks/controls, the sole exception being a Record Action set to open in a window (which rarely suits the use case at hand).

Reply
  • 0
    Certified Lead Developer

    My old fallback for adding or editing line-items where they have complex requirements or validations is to simply put the item list in a read-only grid, and make the user click an "edit" control on the grid which will then show the expanded items for just that row in a little section below the grid, complete with its own buttons including "save" and "cancel".

    I'm not sure what-all you're trying to do with "form headers" or whatever, but following my approach is usually at least one path to success.  Sadly there isn't a way to arbitrarily open pop-up windows/tasks/controls, the sole exception being a Record Action set to open in a window (which rarely suits the use case at hand).

Children
No Data