Limited number of fields?
See original GitHub issueHey, 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:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, give me a few hours and I’ll look into it.
Right, yes - that would be it, oops. It works now, thanks a lot for your time & help.