PricingBlog

simple use of custom code...probably user error

  • complex0x-1206336974735286272

    Complex

    1 year ago

    This is probably user error, but how would I get this function with custom code to actually work? I'm trying to take a string input and convert it to a number with a currency conversion, and display it on my page. But the output is returning null...
    1206336974932287548-image.png
    1206336975200583700-image.png
  • andreasmoller-1206339444999979099

    Andreas Møller

    1 year ago

    You can see the format for custom actions / formulas here:
    https://docs.nordcraft.com
  • andreasmoller-1206339953957797899

    Andreas Møller

    1 year ago

    the function in your formula will receive two input arguments
    "args", and "ctx".
    args is an object with all the input arguments so to get an input argument named input you would need to use args.input
    🙏1