Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Composite.Forms.FormBuilder] Edit form field containing pre-defined field params in FormBuilder.config will freeze editor #25

Open
VolodymyrMuzyka opened this issue Jun 16, 2016 · 0 comments

Comments

@VolodymyrMuzyka
Copy link
Contributor

How to reproduce:

  1. Lets use standard field below (Notice it's have predefined field MaxSize):
  <Field name="multipleimages" label="${Composite.Forms.FormBuilder,Fields.MultipleImageUpload}" icon="icon-multipleimageupload" descriptionParameters="ButtonText,Help" validationParameters="Required,MaxFileCount" advancedParameters="Name">
    <f:function name="Composite.Forms.FormBuilder.Fields.MultipleFileUpload">
      <f:param name="MaxSize" value="20971520" />
      <f:param name="Accept" value="image/*" />
    </f:function>
  </Field>
  1. Add MaxSize to markup:
                <Field name="multipleimages">
                    <f:param name="Label" value="Multiple Image Upload" />
                    <f:param name="Name" value="Multiple Image Upload" />
                    <f:param name="ButtonText" value="" />
                    <f:param name="Help" value="" />
                    <f:param name="Required" value="False" />
                    <f:param name="MaxFileCount" value="5" />
                    <f:param name="MaxSize" value="20971520" />
                </Field>
  1. Go to visual mode, click on field, now try click to other - you will get frozen UI, in web browser console you will notice:
    Failed to load resource: the server responded with a status of 500 (Internal Server Error)

/Composite/InstalledPackages/content/views/Composite.Forms.FormBuilder/FieldEditor.aspx?consoleId=key6727764121954207

Expected: <f:param name="MaxFileCount" value="5" /> supposed to define default value and let editor edit this param in visual mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants