Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find function asFileUploadItem in object Item. (line 57, file "Code") #4

Open
pmpinto opened this issue Feb 16, 2018 · 3 comments

Comments

@pmpinto
Copy link

pmpinto commented Feb 16, 2018

Line 57 is:

  var typedItem = item[itemTypeConstructorName]();

And itemTypeConstructorName for this specific item is "asFileUploadItem".

I do have a file field on this form.
Am I missing something?

@KalipheGTU
Copy link

Hi how we can insert file upload in this form and insert google maps with location piker? thank you

@KalipheGTU
Copy link

can you put a video tutorial to show us how to do it please thank you

@SableRaf
Copy link

SableRaf commented Oct 19, 2022

This script builds a method from the item's type adding as as a prefix and Item as a suffix as seen below:

var itemTypeConstructorName = snakeCaseToCamelCase("AS_" + item.getType().toString() + "_ITEM"); 

The problem is that item has no asFileUploadItem() method (see the form API reference for item). This seems to be a long known issue with no fix in sight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants