Search Posts

Category: angular-schema-form

schemaform adding the user input to a schema array

Background I am making a form using http://schemaform.io/ Setup I am trying to make an array of items that a user can make using a form. So, the user can add as many items into the array as they want. For now the items in the array contain a command type. Command Type should be a dropdown containing SSH, REST, and whatever the user enters in as the personalized command type. Code so far SCHEMA […]

Angular Schema Form – "required" not working select and checkbox fields

I’m new to Angular Schema Form and having some issues with select and checkbox fields required validation. Under $scope.schema I have the select field named designation: “designation”: { “title”: “Designation”, “type”: “select”, “default”: undefined } $scope.form (declaring designation and agreeTerms): { “key”: “designation”, “type”: “select”, “title”: “Designation”, “titleMap”: [ { value: undefined, name: “Select a designation” }, // first value { value: “Andersson”, name: “Andersson” }, { value: “Johansson”, name: “Johansson” }, { value: “other”, […]

angular schema form image upload accepting all file types

I have used the this plugin Angular Schema Form and all the things are working as expected but for image upload i need to have validations so as to allow the users input only images. although the schema contains an accept attribute in the properties for image upload as follows: { “type”: “object”, “properties”: { “text1”: { “type”: “string”, “title”: “Untitled Text field”, “name”: “text1”, “url”: “http://localhost/image/upload/img59b7c29f1622b.jpeg” }, “file2”: { “type”: “object”, “format”: “file”, “title”: […]