Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 30 12:27
    Alokeen closed #999
  • Jun 30 12:27
    Alokeen edited #999
  • Jun 30 11:17
    Alokeen opened #999
  • Jun 23 18:51
    krptodr commented #674
  • Jun 05 11:02
    nicklasb commented #491
  • Jun 05 10:51
    nicklasb reopened #491
  • Apr 15 02:51
    krptodr commented #491
  • Mar 28 13:32
    VimalP0904 commented #316
  • Dec 27 2019 08:33
    jmddesarrollo commented #419
  • Nov 15 2019 11:58
    john-latham synchronize #998
  • Nov 15 2019 11:02
    john-latham synchronize #998
  • Nov 15 2019 10:58
    john-latham synchronize #998
  • Nov 15 2019 10:38
    john-latham synchronize #998
  • Nov 13 2019 09:41
    Gobakabana commented #822
  • Nov 07 2019 07:35
    margi212 commented #168
  • Oct 29 2019 13:10
    alambir edited #998
  • Oct 29 2019 11:54
    ivarprudnikov commented #888
  • Oct 29 2019 11:54
    ivarprudnikov commented #888
  • Oct 29 2019 11:53
    ivarprudnikov commented #998
  • Oct 25 2019 16:09
    alambir opened #998
Scott
@scottux
@fa-hmad ^
Marcel J Bennett
@Anthropic
@iGormilhit @rthaut @scottux can any of you try the decorator from 0.8.13 with asf @ 0.8.14? I suspect that the decorator is too new for the version of code in the asf 0.x branch. If that works for both of you and anyone else who can quickly test that I will put out 0.8.15 in the next few days with the same 0.8.13 decorator.
It will be quite painful I imagine trying to sort out what change in the version using the builders caused the regression so I am not sure how much value there is in debugging it further if it works well with the previous decorator. I'd rather spend what little time I have on the next alpha now I am getting closer to a full recovery.
Scott
@scottux
so 0.8.14 for angular-schema-form and 0.8.13 for the material decorator?
Scott
@scottux
i am still trying to get my bearings with all the version juggling and testing
Ryan Thaut
@rthaut
@Anthropic it looks like the conditional array validation works correctly with the 0.8.13 bootstrap decorator when used with ASF v0.8.14, as demo'd here: https://codepen.io/rthaut/full/qMWpaV/
Marcel J Bennett
@Anthropic
@rthaut thanks, I thought that would be the case.
@rthaut @scottux are you in a position to try it out in anything you are working on and see that nothing else is broken (that was working in 0.8.13)? I have tried it with the items in the example site and as far as I can tell it seems ok, but then I didn't have the use case that was found obviously or I would have picked it up.
Scott
@scottux
i will do what i can
fa-hmad
@fa-hmad
Thanks so much for posting the link to those instructions. @rthaut

Another quick question, I notice you guys are including the latest ver of angular-sanitize. Unfortunately, this introduces breaking changes if you are not on the latest version of angular.

I'd like to use angular-sanitize ver 1.5.8 with angular-schema-form instead. Here's my imports-loader rule as stated from the docs.

So far I've tried an alias for angular-sanitize but that doesn't seem to work.

{
            test: require.resolve('angular-schema-form/dist/schema-form.js'),
            use: 'imports-loader?tv4=tv4,ngSanitize=angular-sanitize,objectPath=objectpath'
 }
fa-hmad
@fa-hmad
Nvm. Realized this was on my end since I was mixing up the versions needed for my app. Thanks a lot everyone.
Marcel J Bennett
@Anthropic
@fa-hmad glad you sorted it :)
Hugo Martins
@hugoalexmartins
@Anthropic sorry bother you, but can you just tell me how things going about updating material decorator?
Just asking, but it comes the time which ill need it a lot. Fell free if I can help in anything.
Marcel J Bennett
@Anthropic
@hugoalexmartins to be honest I don't have the bandwidth to update it in the short term, it wouldn't be super hard to update, pretty much just needs to take a look at changes in bootstrap and migrate relative changes prior to the first alpha, any directive and code changes.
Marcel J Bennett
@Anthropic
@hugoalexmartins just a thought, but have you tried with alpha 2? That in theory should work just as well if not better than 0.8.13.

I know it says alpha but only because the new core was upgraded but the main lib had a lot of fixes added and even Material was updated to that.

Also I added a comment on your github issue, there is a previously reported issue that may be the same and there was a suggested solution on that, if you can confirm it is a, the same and, b, works, then I can make a few updates for you in 0.8.15 possibly.

Hugo Martins
@hugoalexmartins
@Anthropic gonna try alpha2 i am using schema form 0.8.14 do you think i sould use 0.8.13 ? all give you a feedback in a few hours. thanks
Hugo Martins
@hugoalexmartins
@Anthropic about update to alpha2, how do you do it ? I am trying with yarn. Couldn't find any versions for "angular-schema-form-material" that matches "1.0.0-alpha.2".
Marcel J Bennett
@Anthropic
@hugoalexmartins use the matching alpha from asf or higher, probably safest with the same level.
The material decorator you would have to use the git path in your package file or copy the file into your repo, alternatively try the first alpha but there would be more fixes in the second. I just haven't confirmed what the changes are that may be missing from asfm in later alphas that may have issues matched with the later asf alphas. I'd have to compare changes in the later alphas in asfb.
Scott
@scottux
I slapped together a quick blog post about how I am using ASF with Restheart if anyone has some feedback or if needing more tutorials to ease adoption of the library. https://scottux.com/blog/restheart-angular-json-schema
Sean Turnbull
@y25ean
Hey Guys, I am wondering if there is any way to have an multiple types of objects in the same array. I see that anyOf and oneOf aren't supported yet but is there a work around to not validate and still have them? Thanks
John Slipper
@johnslipper
Hi all, is this the place for a general question about ASF? Does anyone know of any other JSON form libraries that support the ASF "condition" property? We utilise ASF heavily but need to transition away from angularJS and it looks like the it was dropped in favour of "dependencies" (a specification thing?)
Hugo Martins
@hugoalexmartins
Hey guys, how to get value of field on template key to override template ? Tried different ways like valuevalue but didn't get anything !
Hugo Martins
@hugoalexmartins

I need some urgent help.

I have this set of tables, Form, Questions, Answer

I have a form that returns me Form, Questions, Answer, for the Answer I must have an input type that comes from a type that the Question has, this type can be, True / False, Input Text or Date, I have a model that returns me 1 Form, 5 Questions and for one of them I must have an input type in Answer, in the background I have dynamic types coming from the model, some idea how I can develop this using Angular JSON Schema Forms

Hugo Martins
@hugoalexmartins
Any idea would be helpful.
Marcel J Bennett
@Anthropic
@hugoalexmartins can you give some more info, are Form Questions, Answer separate forms or sections within the one form? You can use condition to show/hide the correct field type perhaps?
Hugo Martins
@hugoalexmartins
@Anthropic , yes of course. Questions has title for label, type (text, textarea, checkbox, etc) and Answer has a field value which is a clob, and will save the values of User input.
@Anthropic I have done something like this, with PHP and HTML, when I render the input, I just see which type is in Question and render a corresponding input, the user inputs the value and will save it in Answer.
@Anthropic for this propose will try to keep it simple, all the Questions can be in the same form or section.
Hugo Martins
@hugoalexmartins
@Anthropic the main purpose is to be able to make a dynamic form, such as a questionnaire.
Hugo Martins
@hugoalexmartins
Hey guys, is it possible to have multiple UI form same schema, like have 1 key of model in style one, and 2 key of model in style 2, the schema has an array of course
Hugo Martins
@hugoalexmartins
Hey, when have an onChange in a ui key, how to trigger a function in the ecmascript controller, this function will update schema to add new titlemaps in another key field
velteyn
@velteyn
hello
can someone hel me with angular SF ? Im struggling to make cehckboxes work...
better: they work but the validation is not working... :(
  • angular-schema-form
  • @version 1.0.0-alpha.5
is the validation for checkboxes changed ?
Leonid Dashko
@kagan94

Hi, is there a way to automatically bind the form without specifying name attribute?

So, instead of explicit binding like this:
<form sf-schema="schema" sf-form="form" sf-model="model" name="formRef"></form>

I want to have only this code in html and ideally automatically access NgController via reference form.formRef without explicit binding:
<form sf-schema="schema" sf-model="model" sf-form="form"></form>

The purpose for this is to check if all forms within one component are valid or not, for example by running this method:

scope.isInvalid = function() {
    return _.some(scope.formRefs, '$invalid')
}
sadokbani
@sadokbani
i have probleme with installing angular-json-schema-form with angular 9
any help plz
Ryan Thaut
@rthaut
@sadokbani this is for "legacy" AngularJS 1.x, not Angular 2+
Chad Robinson
@krptodr
Anyone have a working plunker for the add-on angular-schema-form-datepicker
Chad Robinson
@krptodr
How can I assign a default value to an add-on?
koushikroy1989
@koushikroy1989
Hi,
I want to use the angular schema form where I want to dynamically build UI based on a JSON Schema.
do you have any stackblitz example that I could refer for basic understanding?
anandasaran
@anandasaran
Do we have the json-schema-form/angular-schema-form support for latest angular?
Marcel J Bennett
@Anthropic
No I don't have the resources to make a Angular 2+ version
I no longer work in Angular, so I don't get any time to work on this unfortunately.
anandasaran
@anandasaran
Thanks for the update @Anthropic
koushikroy1989
@koushikroy1989
is there any way to access isDirty flag on AJSF?
i want to decide before save if the form was made dirty or not.
Tim Hardy
@thardy
Are there any examples or modules for placing basic logic rules into json-schema? e.g. "If the answer to question 2 is yes, make questions 10-12 visible". Just wondering if flow control and rules are addressed anywhere by json-schema or if anyone has pioneered any work in that space.
tuerfight
@tuerfight
Do anybody know is there a tool to convert json schema to xml schema except Altova XMLSpy?