Are you wanting to copy some of the data from the document information to some fields on the document?
Thank you So much for your response. Yes you are I want to copy from custom Properties to the form fields inside the document.
Kindly help me as it is urgent for my use case. let me know if you need any additional information.
Thank you so much, is it same for Custom Properties as well or anything else we need to follow
It should work. Here's a code sample the gets the value from a custom info field and populates a text field:
getField("Text1").value = info["My Custom Info Field"];
where "My Custom Info Field" is the name of the info field you want to use.
It's not clear to me if the project number field name is what you used, or if you actually called the test function. Also, "Name" is not one of the custom fields that you've set up, so you should try "SourceModified", "Company", or "Comments" instead.
Where does you call this function?
Yes I am using Project Number field. I tried changing to SourceModified. but still it is not coming.
I am new to this, I am not calling could you please let me how call for the specific field in the template
It might be easiest if you could post a sample document.
it is the sample code:
getField("Project No:").value = info["SourceModified"];
This defines a function. Where does you run/execute the function?
I am not sure where exactly I have to keep. Now I am calling like this.
It might be best to review your requirements. I understand you want to fill a form field with the same information that's in a custom info field. What's not clear is when this needs to be done. How is the custom info added to the document in the first place? When are the form fields added, and is it an automated process of a manual one? It seems like you'd only need to run the script once, before the document is made available for others to use, is that right?
Could you please help me on this.
Check the console for errors.
Are you able to share a sample document that we could use to show how to solve the problem?
Your are trying to get a field called "Project No:", that is the text that appears on the form, but is it actually the name of the field?
As you are running on the DocumentClose event, I am not sure if this would be saved, could you move it to a button or something on the form, for the sake of easier testing, and making sure the code is working as expected.
Could you please help me on this?
I am not sure that any change made on the Will Close event would not be saved as the Save is probably already done.
Can you post a sample document that we can investigate?
Kindly let me know your availability please let me I will connect with you for 5 mints.
I am around most days, feel free to email "info @ barlaedc .co .uk" (without spaces) if you want to take this conversation off the forums.
I send you an email could you please check once and let me know you inputs.
Could you please check my mail and let me know. It is little urgent.
I have uploaded a document to this folder - https://adobe.ly/2Vaq4fP in the folder called "InfoToField", this should how the field could be populated by the document information field called Keywords, on document open.
Thank you so much for your help. I am not able to open the above folder I am getting inder page.
It is not a public link.
then how to access that link.