private void SaveProperty(FormFieldInfo ffi, FormFieldPropertyEnum property, FormEngineUserControl control) { if (control.Visible) { if (control is LocalizableFormEngineUserControl) { // Save translation ((LocalizableFormEngineUserControl)control).Save(); } ffi.SetPropertyValue(property, ValidationHelper.GetString(control.Value, String.Empty)); } }
private void LoadProperty(FormFieldInfo ffi, FormFieldPropertyEnum property, FormEngineUserControl control, MessagesPlaceHolder msgPlaceHolder) { if (control != null) { bool isMacro = ffi.IsMacro(property); control.Visible = !isMacro; if (!isMacro) { control.Value = ffi.GetPropertyValue(property); } else { msgPlaceHolder.ShowInformation(GetString("FormBuilder.PropertyIsMacro")); } } }
private void SaveProperty(FormFieldInfo ffi, FormFieldPropertyEnum property, FormEngineUserControl control, bool removeScripts = false) { if (control.Visible) { if (control is LocalizableFormEngineUserControl) { // Save translation ((LocalizableFormEngineUserControl)control).Save(); } var value = ValidationHelper.GetString(control.Value, String.Empty); if (removeScripts) { // Wipe out scripts value = HTMLHelper.RemoveScripts(value); } ffi.SetPropertyValue(property, value); } }
private void SaveProperty(FormFieldInfo ffi, FormFieldPropertyEnum property, FormEngineUserControl control) { if (control.Visible) { if (control is LocalizableFormEngineUserControl) { // Save translation ((LocalizableFormEngineUserControl)control).Save(); } ffi.SetPropertyValue(property, ValidationHelper.GetString(control.Value, String.Empty)); } }
private void LoadProperty(FormFieldInfo ffi, FormFieldPropertyEnum property, FormEngineUserControl control, MessagesPlaceHolder msgPlaceHolder) { if (control != null) { bool isMacro = ffi.IsMacro(property); control.Visible = !isMacro; if (!isMacro) { control.Value = ffi.GetPropertyValue(property); } else { msgPlaceHolder.ShowInformation(GetString("FormBuilder.PropertyIsMacro")); } } }