Usually to access field value in code, Value property of AdaptedControlResult class is used.
For any list or complex types of fields, the Value property normally contains extra information.
For e.g., A WFFM form has a check-box list and the values for its items are 1,2,3,4,5. User selects 1,2,3 and submits the form.
Then in the server-side code the value of this field is:
<item>1</item><item>2</item><item>3</item>
To get a simple value with out item tags then GetSitecoreStyleValue method of FieldReflectionUtil class can be used.
Example code snippet:
AdaptedResultList fields; // Get the form field by specifying the field name AdaptedControlResult formField = fields.GetEntryByName("fieldName"); // complex value with item tags string fieldValue = formField.Value; // simple value without item tags fieldValue = Sitecore.Form.Core.Utility.FieldReflectionUtil.GetSitecoreStyleValue(formField.FieldID, fieldValue);
BottomLine: Use FieldReflectionUtil class to get simplified version of form field values.
c394a7llpts829 adult sex toys,horse dildo,anal dildo,sex chair,vibrating dildos,cheap sex toys,women sexy toys,sex toys,vibrators g547x3zyeed096
ReplyDeleteWithout a doubt, although, one of many consistently most popular gambling video 우리카지노 games of all time is real roulette. It's a recreation where a participant can attain incredible highs and lows – it is one of the most unstable gambling video games to date. Its popularity has spawned several of} variants on the game's guidelines, together with European, American, French, and many of|and lots of} others.
ReplyDelete