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

Primary key is required #36

Open
atikhashmee opened this issue Sep 4, 2020 · 1 comment
Open

Primary key is required #36

atikhashmee opened this issue Sep 4, 2020 · 1 comment

Comments

@atikhashmee
Copy link

Hey I am using Filemaker 17 database/server.
but the problem is when I am trying to create a new record why would it ask for some field is required to put input?
for example PrimaryKey Field,
is not supposed to generate autometically?
thanks
please guide me through thishttps://prnt.sc/ublskd

@airmoi
Copy link
Owner

airmoi commented Sep 10, 2020

Hi, did you set the "not null" attribute in your field's definition ?

If so, you should disable that option while your field is already auto-entered.

Otherwize, the PHP-API validation process checks for every field presents on a given layout and apply all supported field's validation options, that's why the validation would fail even if its your primary key.

Another option is to create your record using a different layout which does not have your primary key, that way, there will be no validation applied to that field.

I will consider adding an option to override "not null" validation when a field has en auto-enter option activated

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

No branches or pull requests

2 participants