You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Using Page Variable in seeded Redwood Runtime Pages in VBS

Hi Experts,

I am facing an issue with the VBS value expression when trying to set a value from a field expression function.

In my scenario, I declared a page variable globally, and the variable is returned correctly from the field expression. However, the value is not appearing as the default value in my input box.

/* eslint-disabledot-notation */

define([], () =>{

  'use strict';

  /**

   * Default value expression for

   *documentRecords.documentRecordsDFF.perDiemAmount

   * @param {object} context

   * @return {string}

   */

  functiongetDocumentRecordsDocumentRecordsDFFPerDiemAmount(context) {

    const { $objectContext, $fields, $modules,$user, $variables } = context;

    // The following variable's default value is 1333

    return $variables.valueNumber;

  }

  return {getDocumentRecordsDocumentRecordsDFFPerDiemAmount };

});

I would like clarification on whether a declared page variable can be used inside a field expression or not.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!