I've got a repeatable form field with default values for each
param. When its initially called it shows the string but when that
exact string is run through json_decode it returns null. What is it
that I'm doing wrong?
Here is the default I'm setting ..
default="{'Elements':['body','h1','h2','h3','h4','h5','h6','p','a','i','ol','ul','li','span.company-name','span.company-slogan'],'Function':['Body','h1','h2','h3','h4','h5','h6','Paragraph','links','i','Ordered
lists','Unordered Lists','List Element','Company Name','Company
Moniker'],'Size':['','','','','','','','','','','','','','',''],'Weight':['','','','','','','','','','','','','','',''],'Style':['','','','','','','','','','','','','','',''],'Color':['','','','','','','','','','','','','','',''],'hoverColor':['','','','','','','','','','','','','','',''],'linkColor':['','','','','','','','','','','','','','',''],'hoverlinkColor':['','','','','','','','','','','','','','','']}"
and the attached image show's the output.
I appreciate any advice.. I tried searching the docs but there isn't
really anything that I could find showing how to get the code back
out...
php says json must be in double quotes not singles. But changing it
to ..
default='{"Elements":["body","h1","h2","h3","h4","h5","h6","p","a","i","ol","ul","li","span.company-name","span.company-slogan"],"Function":["Body","h1","h2","h3","h4","h5","h6","Paragraph","links","i","Ordered
lists","Unordered Lists","List Element","Company Name","Company
Moniker"],"Size":["","","","","","","","","","","","","","",""],"Weight":["","","","","","","","","","","","","","",""],"Style":["","","","","","","","","","","","","","",""],"Color":["","","","","","","","","","","","","","",""],"hoverColor":["","","","","","","","","","","","","","",""],"linkColor":["","","","","","","","","","","","","","",""],"hoverlinkColor":["","","","","","","","","","","","","","",""]}'
doesn't solve the problem either...
Bear