Hi! I’m trying add tooltips for my action input fields.
But I don’t see any examples in the documentation.
Hey @AOsmanov,
See the section titled “Labels” here. You can Use labels to add text to your outputs or inputs in the workflow editor. They are loaded into HubSpot’s language service and may take a few minutes to display. Portals set to different regions or languages will display the label in the corresponding language, if available.
You can set labels when defining your action by including something similar to the below:
{
"labels":{
"en":{
"actionName":"Create Widget",
"actionDescription":"This action will create a new widget in our system. So cool!",
"actionCardContent":"Create widget {{widgetName}}",
"appDisplayName":"My App Display Name",
"inputFieldLabels":{
"widgetName":"Widget Name",
"widgetOwner":"Widget Owner"
},
"outputFieldLabels":{
"outputOne":"First Output"
},
"inputFieldDescriptions":{
"widgetName":"Enter the full widget name. I support <a href=\"https://hubspot.com\">links</a> too."
},
"executionRules":{
"alreadyExists":"The widget with name {{ widgetName }} already exists"
}
}
}
}
For tooltips the “inputFieldDescriptions” object contains the key value pairs that let you specify which input field will have a certain description. Which would result in an output like this:
