Change label, show * for mandatory
Posted: 2020-06-25 20:39
I have need to dynamically change label for a text field. The Label method (https://appgini.bizzworxx.de/products/j ... ew/labels/) works well. However, this happens to be a required field, so the html has <span class="text-danger"><%%TRANSLATION(*)%%></span> for the label to present the * mandatory indicator. How can I get that * displayed after using the Label method?
I have updated the tablename_templateDV.html file to add an id for the label, then I manually append the html to the label in the tablename-dv.js file. I don't like this because I have to set this to Read Only so I don't overwrite it every time I regen. I don't like having to do that because eventually I will need to change that template and my changes won't take (because I will forget that it's Read Only).
Any ideas?
TIA
~Paul
AppGini 5.82 revision 1101
I have updated the tablename_templateDV.html file to add an id for the label, then I manually append the html to the label in the tablename-dv.js file. I don't like this because I have to set this to Read Only so I don't overwrite it every time I regen. I don't like having to do that because eventually I will need to change that template and my changes won't take (because I will forget that it's Read Only).
Any ideas?
TIA
~Paul
AppGini 5.82 revision 1101