New answers tagged

2

You appear to have copy-pasted the XML wrong. It looks like you meant; <?xml version="1.0"?> <xmldata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS"> <recordset name="colr" rewr="1" rr="w"> <record> <field name="current-color&...


0

For anyone that comes across this problem - Brian is absolutely right. Something like the below is great if you don't mind a little regex: xmlString.replaceAll('<(/?(Date|Time))>', '<$1_x>'); The suffix added is _x, and if you want to add more words that are reserved just add another |xxx next to the Date|Time so that each word is joined via the ...


5

Unless I'm missing something with your question, why can't you just add the required attribute to your property? e.g. <targetConfigs> <targetConfig targets="lightning__RecordPage"> <property name="somenumber" label="Some Number" type="Integer" default="0" required="true" /> ...


Top 50 recent answers are included