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

Array binding issue #451

Closed
prafullbhalekar opened this issue Apr 30, 2024 · 7 comments
Closed

Array binding issue #451

prafullbhalekar opened this issue Apr 30, 2024 · 7 comments
Labels
Documentation usage how to use jsonform

Comments

@prafullbhalekar
Copy link

prafullbhalekar commented Apr 30, 2024

Hello I am trying to bind dynamic array values to field inside ajsf but somehow I was not able to. could anyone please help me here ? attaching SS for the ref
Screenshot (51)
any help would be apricated

@sdetweil sdetweil added Documentation usage how to use jsonform labels Apr 30, 2024
@sdetweil
Copy link
Contributor

I do not know what you mean

 bind dynamic array values to field

the schema defines the array
the value section defines the values that are used when generating the form
the form section defines the visual and interaction rules for the presentation

@sdetweil
Copy link
Contributor

what do you mean by 'dynamic'

there are two approaches

  1. the static value section define the data on form START
  2. the FORM can add or subtract from the array , before submit

you cannot change the data(value section) live and THEN ask for form to change..
you must re-render the form

@prafullbhalekar
Copy link
Author

Hi @sdetweil Thank you so much for you reply....If I want to add static values then how should I write my json schema file ? Currently what happing is if I add static array data in data object inside schema file on UI it's showing those values inside input fields but I don't want that input fields I just want to show direct values as shown in SS

@sdetweil
Copy link
Contributor

I dont understand what you mean

@sdetweil
Copy link
Contributor

also, asjf is a different project
https://github.com/hamzahamidi/ajsf

@sdetweil
Copy link
Contributor

static data sounds like labels
lables are created from the fields title property
you could create read only fields with no data, and use css to mark the field display:none; to hide it. leaving onty the title showing

@sdetweil
Copy link
Contributor

closing, wrong project reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation usage how to use jsonform
Development

No branches or pull requests

2 participants