json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

Change title dynamically #754

Closed milansgowda closed 7 years ago

milansgowda commented 8 years ago

Question

As a user I should be able to change the title/dynamically of the form dynamically. Currently i can change the value of inputs, is there a way where i can change title/label dynamically

Expected behaviour

{ "key": "comment", "type": "textarea", "title":"user.title", "placeholder": "Make a comment" } where i can set value for comment like $scope.model.comment ="Comment description" and it would change the value. Same set $scope.user.title = "First Name" it should display "First Name" as title

Actual behaviour

It actually showing user.title as title

@json-schema-form/angular-schema-form-lead

MGouaillier4CT commented 8 years ago

Hello :) See : #538

I hope it can help

Anthropic commented 8 years ago

Using the new builder this may be possible without the overhead added by two new watchers per field if the suggested PR doesn't cover what you are after.

Anthropic commented 7 years ago

Please re-open if you do not feel the question has been answered sufficiently I'm spring cleaning quiet issues.