02-26-2021 01:01 PM
I need to update the hyperlink form control using rest api.
what would be json syntax for updating the following 2 fields using api/enterprise/task-forms/:taskId/save-form
1. hyperlinkUrl and
2. displayText
I tried with the same way of setting the dropdown control, but it didn't work.
Below is my hyperlink control
{
"fieldType": "HyperlinkRepresentation",
"id": "formAttachmentLink",
"name": "Attachment",
"type": "hyperlink",
"value": null,
"required": false,
"readOnly": false,
"overrideId": true,
"colspan": 1,
"placeholder": null,
"minLength": 0,
"maxLength": 0,
"minValue": null,
"maxValue": null,
"regexPattern": null,
"optionType": null,
"hasEmptyValue": null,
"options": null,
"restUrl": null,
"restResponsePath": null,
"restIdProperty": null,
"restLabelProperty": null,
"tab": null,
"className": null,
"params": {
"existingColspan": 1,
"maxColspan": 2,
"field": {}
},
"dateDisplayFormat": null,
"layout": {
"row": -1,
"column": -1,
"colspan": 1
},
"sizeX": 1,
"sizeY": 1,
"row": -1,
"col": -1,
"visibilityCondition": {
"leftFormFieldId": "formAction",
"leftRestResponseId": null,
"operator": "==",
"rightValue": "forward",
"rightType": null,
"rightFormFieldId": "",
"rightRestResponseId": "",
"nextConditionOperator": "",
"nextCondition": null
},
"hyperlinkUrl": " ",
"displayText": null
}
03-02-2021 04:15 AM
I dont think we can change because it is used for display purpose.
Have you made it editable?
03-02-2021 06:41 AM
All the options I see is the below 2 screenshots, it gives on option to replace the value from variable or form field.
I tried using the variable, didn't work.
Let me if you have any suggestions or workaround,
03-04-2021 01:27 AM
This is form control.
do you have this form control editable in user task?
Explore our Alfresco products with the links below. Use labels to filter content by product module.