Git Product home page Git Product logo

oc-formstore-plugin's People

Contributors

frthjf avatar gergo85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

oc-formstore-plugin's Issues

Error 'There is no an authenticated user to load or save preferences for.'

This is a regression introduced by the time zone support of the DateTime picker widget https://github.com/octobercms/october/blob/7590dfd30fb08242c6c8e111115659d38ac4aeb8/modules/backend/formwidgets/DatePicker.php#L122.

The problem is that the call to retrieve the time zone \Backend\Models\Preference::get('timezone') is unauthorized unless the FormStore user is authenticated in the backend.

A workaround is to set ignoreTimezone: true in the datepicker field definition of the form yaml.

Can't render the form

Hi, very interesting plugin, but even logged in, I can't access the form. It always ask me my mail...

  1. Could you provide a form page sample ? or a tuto to make the proper page ?
  2. is it possible to directly have the form without authentication ?
    Thanks

Problems with setup

I'm having some difficulty getting the form to display on the page. I have a basic model with 3 fields for testing purposes. I've added the manager component to the page, can successfully "login" to the page but when I click start I get this error:
image

I added protected $fillable = ['*'] to my model and am still getting the error.

UPDATE
So I had fields on my model that were set to NOT NULL which causes problems when the AjaxController tries to create a new model instance. Anyhow, I took off those requirements in the DB and am now getting this error:
image

UPDATE

Ok, so I had a relation defined in the Stored Forms area that did not actually exist on my model. I deleted the relation and it looks like the form is working now. Sorry for the mixup.

Integrity constraint violation NOT NULL

"SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: nocio_formstore_submissions.treated (SQL: insert into "nocio_formstore_submissions" ("form_id", "submitter_id", "data_id", "data_type", "updated_at", "created_at") values (4, 1, 5, Lmh\Forms\Models\Test, 2018-02-22 15:31:40, 2018-02-22 15:31:40))" on line 664 of C:\xampp\htdocs\ocplugins\vendor\laravel\framework\src\Illuminate\Database\Connection.php

I keep getting this error. Not sure what I am missing?

Load custom form widgets

My form uses a formwidget from the RainLab Location plugin and is throwing an error when I try to start a form submission:

image

Do you have any thoughts?

UPDATE: So I dug a little deeper into the code and found the loadBackendFormWidgets() method in AjaxController. I tried adding the code to load the addressfinder widget:

...
            'RainLab\Location\FormWidgets\AddressFinder' => [
                'label' => 'AddressFinder',
                'code' => 'addressfinder'
            ]
...

and now am getting this error:
image

Still not sure how to get around this. Any help is appreciated. Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.