Hi,
I am currently generating crayon dynamic form in custom app . But i have 2 dependent field which one value should be paopulated in the response of other dropdown… it is not working in the below code
Hi @Deiviya_Sivacoumar,
Good day!
If possible can you please share with us the example in jsfiddle of your problem, the above snippet doesn’t have enough information to suggest the solution.
in the code i have tried using “fwFormValueChanged” which should trigger whenever cf_product changes this is not working
and i need to hide a sub_product field in dynamic coding it is also not working
What i need to achieve here is there is a dynamic form where On change of order status = open then i need to show language known field else the field should not be shown
Hello,
You can use the hidden:‘true’ attribute to hide elements. You can then have an event listener to listen for changes in your dropdown / select control and resent hidden:‘false’ which will show the required field.
So you can try this in your fiddle
{
id: ‘2978f820-704b-46c7-9f88-110e14e34a8c’,
name: ‘first_name’,
label: ‘First Name’,
type: ‘TEXT’,
position: 3, hidden:‘true’,
required: true,
placeholder: ‘Enter…’,
hint: ‘Please provide a text of at max 100 characters’,
choices: ,
},
Please note hidden:‘true’ above. This will hide the field. You can then set it to
{
id: ‘2978f820-704b-46c7-9f88-110e14e34a8c’,
name: ‘first_name’,
label: ‘First Name’,
type: ‘TEXT’,
position: 3, hidden:‘false’,
required: true,
placeholder: ‘Enter…’,
hint: ‘Please provide a text of at max 100 characters’,
choices: ,
},
This will show the hidden field.
Please note this may cause the whole form to re-render so please ensure that the already entered values by the user are persisted in your main prop json so on re-rendering the already existing values are correctly show.
We are working on a feature for implementing related fields where this should be more seamless. But for now we can suggest this method.