cancel
Showing results for 
Search instead for 
Did you mean: 

rest task-forms save-form hyperlink control

kdevineni1
Champ on-the-rise
Champ on-the-rise

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
					}
3 REPLIES 3

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

I dont think we can change because it is used for display purpose.

Have you made it editable?

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,

image

image

This is form control.

do you have this form control editable in user task?

Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.