since ‎01-10-2015
‎10-12-2019
urs_h_
Level 2
Debug serverside validation
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi I'm trying to use server side (re-)validation. So I've enabled Server Validation in the form's Submit Action Dialog and I've specified the name of the clientlib into the Styles-Tab (see attached screenshots). It's the same clientlib I use clientside.When I try to submit a form containing data validation succeeds on clientside but fails on serverside. Hence I assume that something went wrong when the validation expressions were evaluated. I guess that not all dependencies where available on se...

Views

493

Likes

0

Replies

1
Re: How can I encode Javascript snippets in widget.jsp?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi Anshika,sorry to come back to this issue I had no time before. How can I access xssAPI from within widget.jsp in AEM 6.1? Thank you,Urs

Views

362

Likes

0

Replies

0
Re: How can I encode Javascript snippets in widget.jsp?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi Anshikathanks a lot.That's what I was looking for. Thanks,Urs

Views

358

Likes

0

Replies

0
How can I encode Javascript snippets in widget.jsp?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi I use a lot of Javascript in custom components. Therefor I use custom properties that I added to the custom component's dialog. I've found that all properties provided by the user via the component's dialog are encoded in the JSP:name="${guide:encodeForHtmlAttr(guideField.name,xssAPI)}"com.adobe.aemds.guide.taglibs.GuideELUtils provides encodeForHtml(String str, XSSAPI xssapi) encodeForHtmlAttr(String str, XSSAPI xssapi) but does not provide methods for other encoding recommended by https://w...

Views

1.1K

Likes

0

Replies

4
Re: Form validation for hidden fields
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi perhaps my answer to this question in the forum http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/aem-forms.topic.html/forum__zmj1-hi_weve_beenusi.html may help you.Regards,Urs

Views

478

Like

1

Replies

0
Re: Adaptive forms - visibility/access expressions and mandatory option
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi DanielI've written a clientlib thatdisables validation on widget and widgets within panels (even nested)clears the value of invisbile widgetsvar widgetClassesToIgnore = [ 'guideButton', 'guideInstanceManager', 'guidePanel', 'guideTextDraw', 'guideToolbar', 'rootPanelNode' ]; function resetWidget(widget) { if (widgetClassesToIgnore.indexOf(widget.className) == -1) { widget.value = null; } if(widget.items) { widget.items.forEach(function(child) { resetWidget(child); }); } } window.addEventListe...

Views

415

Likes

0

Replies

0
Re: What is first? 'Document ready' or guideBridge.connect() ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi Varun thanks a lot for your hint. What I am basically doing is (simplified for the example): ... extract of the widget.jsp of my custom component .... <%@include file="/libs/fd/af/components/guidesglobal.jsp" %> <%-- todo: In case of repeatable panels, please change this logic at view layer --%> guideBridge.connect(function (){ var guideFieldName = '${properties["name"]}'; jQuery.ajax({ type: 'GET', url: ... }).done(function (data) { var somExpr = guidelib.runtime[guideFieldName].somExpression; guideBridge.setProperty([somExpr], "value", [data]); }); }) Regards,Urs

Views

369

Likes

0

Replies

0
Re: What is first? 'Document ready' or guideBridge.connect() ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
my use case is:1) do an ajax call during initialization of the component (using jquery)2) use the result of the ajax call to do DOM manipulations (using jquery) and update the value of guide fields or call validate (using guideBridge)Regards,Urs

Views

367

Likes

0

Replies

0
What is first? 'Document ready' or guideBridge.connect() ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi I've implemented a custom AEM forms component. The implementation uses guideBridge and jQuery. I've built an own clientlib for jQuery that is loaded by the page (not the component) template. Now I wonder, when during page load in the browser both frameworks are ready to be used?When I use the idiom:window.addEventListener("bridgeInitializeStart", function(evnt) { var gb = evnt.detail.guideBridge; gb.connect(function (){ // intialization of my custom component starts here }) })is it safe to us...

Views

1.4K

Likes

0

Replies

5
configure logging for file upload during submit action
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi I'm currently having an issue with file uploads in adaptive forms. Sometimes (!) upload of files attached to adaptive forms does not work, most of the time it works. Because upload works too when I retest with the same files that could not be uploaded, I assume that neither file content nor proxies nor firewalls are the cause. That's why I want to investigate what happens during upload. Therefore I want to change publisher's logging configuration, so that the publisher logs debug or trace mes...

Views

205

Likes

0

Replies

0
Re: How to use GuideSubmitServlet?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi MandeepI was finally able to solve the problem see:http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/aem-forms.topic.forum__ogav-hi_i_wonderhowi__vjcc-hi_varun_withthe._s_1_tosp.html/forum__ogav-hi_i_wonderhowi.html#forum__ogav-hi_i_wonderhowi__vjcc-hi_varun_withtheThank you,Urs

Views

410

Likes

0

Replies

0
Re: How to return a value from submit action and use it in the redirect page?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi Varun with the help of your answer and the answer from Mandeep (http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/aem-forms.topic.html/forum__yc8y-_hi_i_want_to.html) I could eventually pass a custom parameter to the redirect page 🙂I'm using this dependency (in the bundle's pom.xml) to have the GuideSubmitServlet available in my custom submit action: com.adobe.aemfd aemfd-client-sdk 6.1.0 provided and I'm using this code in the submit action to add a custom paramet...

Views

1.1K

Likes

0

Replies

0
Re: How to return a value from submit action and use it in the redirect page?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi arvmohanI've already tried this by writing a custom URL to the reponse's location attribute in the header. response.setStatus(302); response.setHeader("Location", );But setting the header in the custom submit action throws an IllegalStateException. Maybe the exception is thrown because the GuideSubmitServlet has already started to write to the response before my custom submit action is called.Is there another possibility to set the redirect location?Thank you,Urs

Views

1.1K

Likes

0

Replies

0
Re: How to return a value from submit action and use it in the redirect page?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi Mandeepthank you for your answer. The doc you'are referring to, does not describe how I can pass parameters back from a custom submit action to the redirection page.. Flow chart from https://helpx.adobe.com/aem-forms/6-1/custom-submit-action-form.htmlRegards,Urs

Views

1.1K

Likes

0

Replies

0
Re: How to use GuideSubmitServlet?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
sorry, I forgot to answer your second question: I'm using AEM Forms 6.1 with Hotfix 'AEM-FORMS-6.1-WIN-Hotfix-6717-2.2.4' installed.

Views

363

Likes

0

Replies

0
Re: How to use GuideSubmitServlet?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
that's the latest version I've found on https://repo.adobe.com/nexus/content/repositories/releases/com/adobe/aemfd/aemfd-client-sdk/.Regards,Urs

Views

365

Likes

0

Replies

0
Re: How to use GuideSubmitServlet?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi Mandeepthank you for your help.With the dependency you proposed my pom looks like: com.adobe.aemfd aemfd-client-sdk 6.1.1 provided But maven build fails with following error message:... (compile), com.adobe.aemfd:aemfd-client-sdk:jar:6.1.1 (provided)]: Failed to read artifact descriptor for com.adobe.aemfd:aemfd-client-sdk:jar:6.1.1: Could not find artifact com.adobe.aemds:adobe-aemds-pkg-parent:pom:2.4.6 in nexus-releases Regards,Urs

Views

360

Likes

0

Replies

0
How to use GuideSubmitServlet?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi I want to use com.adobe.aemds.guide.servlet.GuideSubmitServlet to pass custom parameters from a custom submit action to the redirect page.http://localhost:4502/system/console/depfinder reports that the package 'com.adobe.aemds.guide.servlet' is available using maven dependeny: com.adobe.aemds.guide aemds-guide-core 2.2.4 provided But this package is not available in repository https://repo.adobe.com/nexus/content/repositories/releases/com/adobe/. By the way I haven't found any javadoc of Guid...

Views

1.6K

Likes

0

Replies

6
Re: Where can I find 'FormsHelper API' as described in 'AEM 6.0 Forms Help / Writing custom Submit action for adaptive forms'
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
I've found the dependencies I need to add to the pom.xml so that FormsHelper class is available: com.adobe.granite com.adobe.granite.xssprotection 5.5.62 provided com.day.cq.wcm cq-wcm-foundation 5.8.52 provided

Views

276

Like

1

Replies

0
Where can I find 'FormsHelper API' as described in 'AEM 6.0 Forms Help / Writing custom Submit action for adaptive forms'
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi 1) https://helpx.adobe.com/aem-forms/6/custom-submit-action-form.html refers to the 'FormsHelper API'. 2) A google search on 'FormsHelper' reveals https://docs.adobe.com/content/docs/en/cq/5-6-1/javadoc/com/day/cq/wcm/foundation/forms/FormsHelper.html3) Searching FormsHelper's package 'com.day.cq.wcm.foundation.form' on http://localhost:4502/system/console/depfinder I've found following dependency: com.day.cq.wcm cq-wcm-foundation 5.8.52 provided 4) But on https://repo.adobe.com/nexus/conten...

Views

419

Likes

0

Replies

1
How to return a value from submit action and use it in the redirect page?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi I wonder how I can make my custom submit action returning a value and have this value available on the redirect page saying as url parameter?Example:1) submit action generates a kind of ticket number2) i want to use the ticket number previously generated by the submit action in a link on redirect page.Regards,Urs

Views

4.3K

Like

1

Replies

10
Re: How to extend or sub-type 'guideField' ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Thanks a lot, using the global property 'properties' it works.adding following code to widget.jsp list all properties currently available ... <c:forEach var="property" items="${properties}"> console.log("${property.key} : " + "${property.value}"); </c:forEach> ...Regards,Urs

Views

305

Likes

0

Replies

0
Re: How to use guideBridge.validate([], <some-expression>) ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi RishiI've retested following your instructions and I haven't found any "validation-failures" markers in other panels than the one specified.So, I guess you were right and in the case of the "error" I reported there was another call before my custom validation that validated all panels.Thanks,Urs

Views

556

Likes

0

Replies

0
Re: How to extend or sub-type 'guideField' ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
Hi Rishithanks for your answer. I tried to test the solution you proposed but I get an error.That's how my widgets.jsp looks like:<%------------------------------------------------------------------------ ~ ~ ADOBE CONFIDENTIAL ~ __________________ ~ ~ Copyright 2014 Adobe Systems Incorporated ~ All Rights Reserved. ~ ~ NOTICE: All information contained herein is, and remains ~ the property of Adobe Systems Incorporated and its suppliers, ~ if any. The intellectual and technical concepts contain...

Views

304

Likes

0

Replies

0
How to extend or sub-type 'guideField' ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
I'want to implement a kind of sub-type of or specialized text box.The specialized text box shall have an additional property like 'urlForAutocompleteLookUp'.Form authors shall be able to configure the value of this property in the widget's dialog. The new property shall be exposed in the Jsp object 'guideField' so that I can use it to implement additional logic:<%------------------------------------------------------------------------ ~ ~ ADOBE CONFIDENTIAL ~ __________________ ~ ~ Copyright 201...

Views

872

Likes

0

Replies

4
Re: How to use guideBridge.validate([], <some-expression>) ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
I'm working with AEM 6.1 and Hotfix adobe-aemds-native-x86-win32-pkg-2.2.4.zip installed. The function looks like this:function customizedValidate() { ... var errors = []; if(guideBridge.validate(errors, somExpression)) { ... } ...The errors array will only contain messages referring to widgets that are children of the widget (or panel) specified by the somExpression.But: On widgets that are children of different parents (more specific: siblings of the one specified by the somExpression) the css...

Views

556

Likes

0

Replies

0
How to use guideBridge.validate([], <some-expression>) ?
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
I'm using guideBridge.validate([], ) and I've expected that children of other panels than the one identified with the SOM-expression would not be validated (as described in Doc). But that's not case.var result = [];guideBridge.validate(result, ) ; Result will only contain errors referring to children of the node identified by . But in the DOM all fields of the form, whose validation fails, will be updated (with css class 'failure').

Views

2.4K

Likes

0

Replies

8
Re: How to make use of "Items load path" for dropdown list in AEM 6 form
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
HiI've had the same problem recently. I could solve like this:1) in CRX create a node with property 'jcr:primaryType' = 'sling:Folder' (let's call it 'xy-lookup-list')2) add a multi string property containing the key-value-pairs to the newly created node. The property name (let's call it 'xy-lookup-values') will be part of the loading path. A key-value pair looks like this 'keyXY=valueXY'.3) specify the crx path as loading path in the dialog of the widget that shall use the lookup value. The loa...

Views

1.3K

Like

1

Replies

0
Issues editing long validation expressions in IE11
Avatar

urs_h_

urs_h_
- Adobe Experience Manager Forms
HiOur authors face the following problem when they want to enter a validation expression with IE11.When they enter a long expression like thisand if they press the return key to break the line manually, let’s say before ‘(this.value % 2)’, spaces only are inserted in IE11:In chrome (version 47.*.*) after pressing return key, the reminder of the expression starts on a new lineThis is the expected behavior.Since IE11 is the standard browser in our company, the authors have additional trouble enter...

Views

396

Likes

0

Replies

1
Issues with guidebrige's event &#8216;elementHelpShown&#8217;
Avatar

urs_h_

urs_h_
- Adobe Experience Manager
Hiin custom javascript code using guidebridge I consume a ‘elementHelpShown’ event as described in https://helpx.adobe.com/aem-forms/6/javascript-api/GuideBridge.html#event:elementHelpShown.Here is the skeleton of my custom javascript code:window.addEventListener("bridgeInitializeStart", function (event) { var gb = event.detail.guideBridge; gb.connect(function () { gb.on('elementHelpShown', function(target, _property, newText) { ... }); }); });Following guidebridge documentation the event handle...

Views

244

Likes

0

Replies

0
Likes from