Timeline for SDL on save component check the values in c#
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 21, 2022 at 6:41 | comment | added | Nuno Linhares♦ | You could also look at Component.InnerXml (or something along those lines), if all you want is to scan all content for a string. | |
Jul 19, 2022 at 7:44 | comment | added | Nuno Linhares♦ | All those field classes (except EmbeddedSchemaField, which is a schema) have a .Value property. Check that and play with it. | |
Jul 19, 2022 at 7:43 | vote | accept | ketan patil | ||
Jul 19, 2022 at 5:31 | comment | added | ketan patil | @Velmurugan and Nuno I have updated my code please check | |
Jul 14, 2022 at 12:40 | vote | accept | ketan patil | ||
Jul 19, 2022 at 5:03 | |||||
Jul 14, 2022 at 12:27 | comment | added | Velmurugan♦ | @ketanpatil - yes It's possible, Nuno example "Validating Content on Save: part 1" - already has the sample code ItemFields fields = new ItemFields(component.Content, component.Schema); you need to play around based on your schema requirements. | |
Jul 14, 2022 at 9:28 | comment | added | ketan patil | Is it possible to get component all filed and its values ? i want to check each component filed and its values while saving. | |
Jul 14, 2022 at 7:58 | comment | added | ketan patil | Thank you for valuable reply. my scenario is i have multiple components which having multiple fields so my question is when user try to save any component. i want to check each filed contain the URL e.g www.blahblah.com then show a popup message for url | |
Jul 14, 2022 at 7:31 | history | answered | Nuno Linhares♦ | CC BY-SA 4.0 |