angular icon indicating copy to clipboard operation
angular copied to clipboard

Select Componet Issue PreSelect value

Open AnasHijazi opened this issue 8 years ago • 10 comments

There are something wrong in select component i have array of JSON of object So i used URL as Data Source Type until now every thing it's ok .

I want now preselect on of these options, based on documention should be there are field called "value property" but it's not there .

there are any advice to solve this ?

AnasHijazi avatar Nov 18 '18 17:11 AnasHijazi

Hello,

The ‘Value Property’ field has not been added to our beta site yet but is definitely on our backlog. This is available on our production portal at https://portal.form.io/ .

Let us know if you need anything else

jeriah-formio avatar Nov 20 '18 18:11 jeriah-formio

@jhen1422 thank you for your response ,currently i use angular-formio version 3.8.0 it's latest version available in npm.

there are any workaround ,i have web service return array of JSON objects , now simply i want preselect one of these object when form load based on property in these object .

Please see the below video : https://drive.google.com/file/d/1stlmwF5aq11xrPbcEqeWe5L6oJBaegLm/view?usp=sharing

AnasHijazi avatar Nov 20 '18 19:11 AnasHijazi

If you are using the Value Property option, you should be able to use the default value option to set the property value. For example, for your select field, if the Value Property is set to "value", you can set the default value to "BH" and it will select that one from the list by default.

randallknutson avatar Nov 21 '18 15:11 randallknutson

@randalkuntson thanks for your response, The Value property available in beta website , currently I use angular-formio version 3.8.0 , how can get this feild property in my project

AnasHijazi avatar Nov 21 '18 17:11 AnasHijazi

@randallknutson Reminder

AnasHijazi avatar Nov 24 '18 16:11 AnasHijazi

@AnasHijazi the Beta website just uses the core builder which is already available within the form manager module within this library. The documentation shows how this can be used within your own application.

travist avatar Nov 26 '18 15:11 travist

@travist i can't understand you , i have to get component select manual ? if yes can share me location documentation please ?

AnasHijazi avatar Nov 29 '18 10:11 AnasHijazi

Here is that documentation for select: https://help.form.io/userguide/form-components/#select

wag110894 avatar Nov 29 '18 15:11 wag110894

@wag110894 , I know this documention based on this there are field value property it's available on beta web site how can get this property ?

I can't understand comment @travist

I using angular-formio version 3.9.0

AnasHijazi avatar Nov 29 '18 18:11 AnasHijazi

@wag110894 @travist

AnasHijazi avatar Dec 01 '18 21:12 AnasHijazi