rest task-forms save-form hyperlink control

cancel
Showing results for 
Search instead for 
Did you mean: 
kdevineni1
Active Member

rest task-forms save-form hyperlink control

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
sanjaybandhniya
Intermediate

Re: rest task-forms save-form hyperlink control

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

Have you made it editable?

kdevineni1
Active Member

Re: rest task-forms save-form hyperlink control

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.png

 

 

 

image.png

sanjaybandhniya
Intermediate

Re: rest task-forms save-form hyperlink control

This is form control.

do you have this form control editable in user task?