I have 4 form Field for my word document and I was trying to update the “TextInputDefault” value for second form field by using formField POST api. When i hit the api it show me that value is updated in the response but when i hit the get api for formField then it show me previous value.
I am using the following api
(https://apireference.aspose.cloud/words/#!/FormFields/PostFormField
)
parameter list
name: smiley_text.docx
formField: {
“Name”: “fieldname2”,
“TextInputType”: “Regular”,
“TextInputDefault”: “dhbdhd”,
“TextInputFormat”: “UPPERCASE”,
}
index: 1
respose
{
“FormField”: {
“NodeId”: “0.4.0”,
“Name”: “fieldname2”,
“Enabled”: true,
“StatusText”: “”,
“OwnStatus”: false,
“HelpText”: “”,
“OwnHelp”: false,
“CalculateOnExit”: false,
“EntryMacro”: “”,
“ExitMacro”: “”,
“TextInputFormat”: “UPPERCASE”,
“TextInputType”: “Regular”,
“TextInputDefault”: “dhbdhd”,
“MaxLength”: 30,
“link”: {
“Href”: “http://api.aspose.cloud/v1.1/words/smiley_text.docx/sections/0/paragraphs/3/formfields/0
”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
},
“Code”: 200,
“Status”: “OK”
}
Response in Get form field api after update the form field
{
“FormFields”: {
“List”: [
{
“NodeId”: “0.1.0.0.0.1”,
“Name”: “fieldname1”,
“Enabled”: true,
“StatusText”: “”,
“OwnStatus”: false,
“HelpText”: “”,
“OwnHelp”: false,
“CalculateOnExit”: false,
“EntryMacro”: “”,
“ExitMacro”: “”,
“TextInputFormat”: “”,
“TextInputType”: “Regular”,
“TextInputDefault”: “”,
“MaxLength”: 0,
“link”: {
“Href”: “http://api.aspose.cloud/v1.1/words/smiley_text.docx/sections/0/tables/0/rows/0/cells/0/paragraphs/0/formfields/0
”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
},
{
“NodeId”: “0.4.0”,
“Name”: “fieldname2”,
“Enabled”: true,
“StatusText”: “”,
“OwnStatus”: false,
“HelpText”: “”,
“OwnHelp”: false,
“CalculateOnExit”: false,
“EntryMacro”: “”,
“ExitMacro”: “”,
“TextInputFormat”: “”,
“TextInputType”: “Regular”,
“TextInputDefault”: “”,
“MaxLength”: 0,
“link”: {
“Href”: “http://api.aspose.cloud/v1.1/words/smiley_text.docx/sections/0/paragraphs/3/formfields/0
”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
},
{
“NodeId”: “0.6.0”,
“Name”: “fieldname3”,
“Enabled”: true,
“StatusText”: “”,
“OwnStatus”: false,
“HelpText”: “”,
“OwnHelp”: false,
“CalculateOnExit”: false,
“EntryMacro”: “”,
“ExitMacro”: “”,
“TextInputFormat”: “”,
“TextInputType”: “Regular”,
“TextInputDefault”: “”,
“MaxLength”: 0,
“link”: {
“Href”: “http://api.aspose.cloud/v1.1/words/smiley_text.docx/sections/0/paragraphs/5/formfields/0
”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
},
{
“NodeId”: “0.7.0”,
“Name”: “fieldname4”,
“Enabled”: true,
“StatusText”: “”,
“OwnStatus”: false,
“HelpText”: “”,
“OwnHelp”: false,
“CalculateOnExit”: false,
“EntryMacro”: “”,
“ExitMacro”: “”,
“TextInputFormat”: “”,
“TextInputType”: “Regular”,
“TextInputDefault”: “”,
“MaxLength”: 0,
“link”: {
“Href”: “http://api.aspose.cloud/v1.1/words/smiley_text.docx/sections/0/paragraphs/6/formfields/0
”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
}
],
“link”: {
“Href”: “http://api.aspose.cloud/v1.1/words/smiley_text.docx/formfields
”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
},
“Code”: 200,
“Status”: “OK”
}
Can you please let me know what i am missing during api call?