Hello,
Is it possible to launch a process start form using a button? I'm aware for buttons we can kickoff processes using a!startProcess in the saveInto parameter, but it doesn't appear a!startProcess observes start forms. I know for icons we use a!startProcessLink and that launches the process with start form perfectly fine, but I can't make it work with buttons. Any help is greatly appreciated! Thanks
Discussion posts and replies are publicly visible
No - you'd have to use a link with a!startProcessLink as you've already found. Buttons and links do not completely overlap in functionality, despite the fact that they now overlap more than they used to thanks to additions like dynamic links and submit links.
Thanks for the confirmation. I found a work around using a!imageField and simply having the button as an image, since a!imageField can handle links similarly to icons
If you're into the idea of workarounds, a popular one around here is to define a (smallish) Card Layout with a solid background color, including text and an icon as you need, and with a whole-card link defined -- this can be made to resemble a button pretty strongly too, without needing to potentially resort to a static image like you're stuck with for a!imageField.
Also FYI in 20.1 we introduced the Record Action Component. This allows you to show an action from a record in several styles, one of which is a button.
A late response but maybe usefull for other. This code simulate a button:
a!cardLayout( contents: { a!richTextDisplayField( align: "CENTER", labelPosition: "COLLAPSED", value: { a!richTextIcon( icon: ri!icon ), a!richTextItem( text: {" " & upper(ri!label)}, style: "STRONG", color: "SECONDARY", link: a!startProcessLink( label: upper(ri!label), processModel: ri!.process, processParameters: ri!processParameters ) ) } ) }, tooltip: ri!tooltip, height: "AUTO", style: "NONE", shape: "SQUARED", padding: "LESS", marginBelow: "STANDARD" ),
Hello, Please let me know if there is any way to perform validations on the screen if the button created using cardLayout to start the process model using start process link?
I have tried using a!submitLink to handle validations on the button created using card layout but we can't start the PM using start process link inside saveInto of submitLink.
If you use card layouts to resemble normal buttons to start a process, you will have to implement any validation manually.
This thread is 4 years old. Are you sure you really want to go that way?