Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Any parameter name (not the value) enclosed within double-quotes would be left unprocessed by cms:input

Hi,
I want to use cms:input type='bound' within <cms:form mode='create' />. I will be creating pages with text editable, which will have a custom text '07/07/2016 - 07/14/2016' as m/d/Y.
And I absolutely need the user don't touch this, so a class read-only is applied.

The value of the cms:input is set programmatically to a range of 1 week before current date and is set like this
value='07/07/2016 - 07/14/2016'

No matter what I tried, the output in code inspector is like this:
<input type="text" id="f_date" name="f_date" value="" class="form-control daterange-weeknumbers" size="105" style="width:99%; ">

I need help, because I can't fight with Couch core php code due to lack of knowledge for this very issue. :( Is there any way to make CMS respect incoming html parameter "value" for bound inputs at least for 'create' mode? I'd rather not mess with common inputs. Thanks
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
I wonder, if you don't want the user to edit the value, why not simply use a type 'hidden' region for it?
2 posts Page 1 of 1