Skip to main content
M.Hasanin
Inspiring
November 8, 2017
Answered

How to export specific field to text file without field name with javascript

  • November 8, 2017
  • 1 reply
  • 903 views

Hi..

I'm trying to export my form data only, like (user name) and (Form Number) ...etc to text file, i used the simple command to export the form this.exportAsText();

but how i can choose specific fields to export also without field names because its abstracted tech names!.

Thanks in Adavance

This topic has been closed for replies.
Correct answer try67

Like this:

this.exportAsText({aFields: ["Field1", "Field2", "Field3"]});

1 reply

try67
Community Expert
Community Expert
November 8, 2017

You have to specify the field names, if you don't want to have all the data from all the fields in the output file.

M.Hasanin
M.HasaninAuthor
Inspiring
November 8, 2017

but how to specify the fields ?

Mohammad Hasanin
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 8, 2017

Like this:

this.exportAsText({aFields: ["Field1", "Field2", "Field3"]});