This PR should add the ability for providing a placeholder as an option to the field.
Right now we are generating placeholder by combining label and selected localeread here.
In our project, we need to show a placeholder explaining to the user what he is supposed to write in this field. which is different than the label and much longer than that. I think it makes more sense to let users enter whatever they want as a placeholder to the field.
Along with this addition, I kept the existing functionality that if the user doesn't provide a placeholder we render field_name + selected locale.
This PR should add the ability for providing a placeholder as an option to the field.
Right now we are generating placeholder by combining
label
andselected locale
read here.In our project, we need to show a placeholder explaining to the user what he is supposed to write in this field. which is different than the label and much longer than that. I think it makes more sense to let users enter whatever they want as a placeholder to the field.
Along with this addition, I kept the existing functionality that if the user doesn't provide a placeholder we render
field_name + selected locale
.