This video demonstrates how to create a button in FlexCard that runs an OmniScript when clicked.
Link to fix the 'Apex class could not be loaded' error if you receive it: • Fix 'Apex class could not be loaded' error...
CSS used:
.slds-button[aria-label="Generate Report"] {
display: flex;
padding: 12px;
background: var(--secondary-blue, #0072DA);
width: 100%;
max-height: 44px;
}
.slds-button[aria-label="Generate Report"]:hover {
background: #005FB6;
transition: 0.7s;
}
.slds-button[aria-label="Generate Report"]:focus {
background: #005FB6;
box-shadow: 0px 0px 8px 0px #0072DA;
}
.slds-button[aria-label="Generate Report"]:disabled,
.slds-button[aria-label="Generate Report"][disabled]{
background: #E7E7E7;
color: #8D8F95;
}