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

Custom Functions Error in adaptive Forms #1060

Open
shravanthprasad opened this issue Feb 2, 2024 · 7 comments
Open

Custom Functions Error in adaptive Forms #1060

shravanthprasad opened this issue Feb 2, 2024 · 7 comments
Labels

Comments

@shravanthprasad
Copy link

Expected Behaviour

Rule editor to set value of component using function output

Actual Behaviour

Error function not found
image

Reproduce Scenario (including but not limited to)

1.Create a client library with a custom function
2.Add clientlibrary to form container
3.Go to form field and click on rule editor
4.Create a rule and set value of field from function output
5.Close
6.Switch to preview mode

Steps to Reproduce

Platform and Version

AEM 6.5.17
Core components version 2.23.4
Form Core Components version 1.1.32

AEM Version (mention the exact version in case of cloud SDK)

AEM 6.5.17

AEM Forms Version

1.1.32

Sample Code that illustrates the problem

/**

  • test function 1
  • @name testFunction1 test function 1
  • @return {string}
    */
    function testFunction1()
    {
    return "test";
    }

Logs taken while reproducing problem

@rismehta
Copy link
Collaborator

rismehta commented Feb 6, 2024

@shravanthprasad, can you attempt the use case on version 6.5.19? According to version metrics, (https://github.com/adobe/aem-core-forms-components/blob/release/650/VERSIONS.md) support for 1.1.32 is only available after 6.5.18.

@shravanthprasad
Copy link
Author

@shravanthprasad, can you attempt the use case on version 6.5.19? According to version metrics, (https://github.com/adobe/aem-core-forms-components/blob/release/650/VERSIONS.md) support for 1.1.32 is only available after 6.5.18.

Hi @rismehta - Thanks for your response. We are on AEM 6.5.17 currently and upgrade to 6.5.19 is planned in second half of 2024. Downgraded to version 1.1.26 and I still see the same issue.
Upon further analysis, I see the servlet(AdaptiveFormCustomFunctionProviderServlet) is not present in bundle(com.adobe.aem.com.adobe.aem.forms.af.rest) which handles the custom function request http://localhost:4502/adobe/forms/af/customfunctions/L2NvbnRlbnQvZm9ybXMvYWYvbm93LWFlbS1mb3Jtcy9yaXNlLXVw
The bundle version is 0.0.90 in AEM 6.5.17

@shravanthprasad
Copy link
Author

@rismehta - We were trying to set value of dropdown component(options) using custom functions in rule editor. But since custom functions is a blocker on AEM 6.5.17 because of above issue, do you have any workaround/suggestion for implementing dropdown options from clientside?

@rismehta
Copy link
Collaborator

We were trying to set value of dropdown component(options) using custom functions in rule editor. But since custom functions is a blocker on AEM 6.5.17 because of above issue, do you have any workaround/suggestion for implementing dropdown options from clientside?

Custom function support was introduced in a subsequent update. To utilize this feature, you may need to either upgrade or submit a hotfix request through the support channel.

@shravanthprasad
Copy link
Author

We were trying to set value of dropdown component(options) using custom functions in rule editor. But since custom functions is a blocker on AEM 6.5.17 because of above issue, do you have any workaround/suggestion for implementing dropdown options from clientside?

Custom function support was introduced in a subsequent update. To utilize this feature, you may need to either upgrade or submit a hotfix request through the support channel.

Thanks @rismehta - We have raised a support ticket.

@rismehta
Copy link
Collaborator

We were trying to set value of dropdown component(options) using custom functions in rule editor. But since custom functions is a blocker on AEM 6.5.17 because of above issue, do you have any workaround/suggestion for implementing dropdown options from clientside?

Custom function support was introduced in a subsequent update. To utilize this feature, you may need to either upgrade or submit a hotfix request through the support channel.

Thanks @rismehta - We have raised a support ticket.

We've created a new release, built upon version 6.5.17, for the custom function. You can find it at https://github.com/adobe/aem-core-forms-components/releases/tag/core-forms-components-reactor-1.1.27-wcmB008. This release incorporates a workaround involving the hardcoding of the function name.

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

No branches or pull requests

2 participants