CF won't repopulate HTML 5 fields

GreyHead 03 Feb, 2012
Hi peteresen,

Please try this: Edit components/com_chronoforms//libraries/includes/data_republish.php and make this change around line 53
		//text/password fields
		// comment out the next line
		//$pattern_input = '/<input([^>]*?)type=("|\')(text|password)("|\')([^>]*?)>/is';
		// and add the line below
		$pattern_input = '/<input([^>]*?)type=("|\')(text|password|color|date|datetime|datetime-local|email|month|number|range|search|tel|time|url|week)("|\')([^>]*?)>/is';

Bob
petersen 03 Feb, 2012
Perfect, thanks Bob.

Will this get rolled into the next release?
GreyHead 03 Feb, 2012
Hi Peteresen,

That's up to Max, not me. I'll link this post into the Bugs list, that way it will hopfully get picked up.

Bob

PS Ideally there should also be a drop-down in the Text element to allow selection of the new types too.
This topic is locked and no more replies can be posted.