Skip to main content
M.Hasanin
Inspiring
Nov 8, 2017 9:22 AM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Nov 8, 2017 12:01 PM UTC

Like this:

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

4 replies

try67
Community Expert
Community Expert
Nov 8, 2017 9:30 AM UTC

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.

Translate
M.Hasanin
M.HasaninAuthor
Inspiring
Nov 8, 2017 11:24 AM UTC

but how to specify the fields ?

Translate
Mohammad Hasanin
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Nov 8, 2017 12:01 PM UTC

Like this:

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

Translate