question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Limited number of fields?

See original GitHub issue

Hey, I was wondering if there was a limit on the number of fields that we can use? Since I always keep getting; for example:

[{"code":"INVALID_FIELDS","data":["contact","link"]}]

When I use ~7 or more fields, my POST form is setup like this:

	<form method="POST" action="https://api.staticman.net/v1/entry/twentytwoo/{{ site.github.repo }}/gh-pages">
	  <input name="options[redirect]" type="hidden" value="{{post.url}}">
	  <input name="options[slug]" type="hidden" value="{{page.slug}}">
	  <input class="col-md-2 col-xs-12" name="fields[title]" type="text" placeholder="Startpage title">
	  <input class="col-md-2 col-xs-12" name="fields[author]" type="text" placeholder="Author">
	  <input class="col-md-2 col-xs-12" name="fields[contact]" type="text" placeholder="Contact (optional)">
	  <input class="col-md-6 col-xs-12" name="fields[description]" type="text" placeholder="Short description of your startpage.">
	  <input class="col-md-6 col-xs-12" name="fields[image]" type="text" placeholder="Screenshot image URL">
	  <input class="col-md-6 col-xs-12" name="fields[link]" type="text" placeholder="Link to your site (optional)">
	  <textarea class="col-md-12 col-xs-12" name="fields[source]" placeholder="Your startpage code here."></textarea>
	  <button class="col-md-1 col-xs-12" type="submit" style="margin-bottom: 2px;">Submit</button>
	</form>

And a snippet of my _config.yml:

# Staticman
staticman:
  allowedFields: ['title','author','contact','description','image','link','source']
  branch: 'gh-pages'
  commitMessage: "New startpage submission."
  filename: submission-{@timestamp}
  format: 'yaml'
  moderation: true
  path: "submissions/_posts/{options.slug}"
  requiredFields: ['title','author','description','image','source']

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
eduardoboucascommented, Nov 20, 2016

Okay, give me a few hours and I’ll look into it.

0reactions
taxillycommented, Nov 20, 2016

Right, yes - that would be it, oops. It works now, thanks a lot for your time & help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the maximum number of fields that can be defined on ...
Answer. The maximum number of fields that can be defined on an Entity or Link is 244. This maximum includes system-generated fields such...
Read more >
Custom Fields Allowed Per Object - Salesforce Help
The number of custom fields allowed per object varies according to your Salesforce Edition. ... There is a 900 maximum hard limit on...
Read more >
Set the field size - Microsoft Support
If the field does not contain data When you change the field size, the size of new data values is limited for the...
Read more >
Is there a limit to the number of fields that can be ... - Esri Support
While file geodatabases have a limit of 655346 fields per table, the limit for personal geodatabases is governed by the .mdb file format,...
Read more >
How many fields can I have in the form? Is there a limit?
There is no limit on the number of fields you can have in a single form. You can put as many as you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found