Skip to main content

Field: Cost Calculator Form

WLCost Hyperlink.Calculator Form.

AbilityCost calculator form for users to createfill aout hyperlinkand (outsidefind ofout richcurrent text)and potential savings. To be used with contentcost blocks,calculator forresults useon withanother resource ID, External URL, Modal or Scroll to IDresource.


Category: Waterlogic Fields.
Content Blocks Documentation: https://docs.modmore.com/en/ContentBlocks/v1.x/Fields/index.html


hyperlink-field.jpgcost-calculator-field.png

figure 1

Additional Settings: (as found within field cog, highlighted in blue)cog)

WL-Hyperlink-Setting-Cog.pngcost-calculator-settings.png

WL-Hyperlink-Settings.pngfigure 2

Settings

HyperlinkRedirect Text:to?: What resource ID is the form results layout on? Required

SVG Icon: The textIcon to display withinabove the linkform.

HyperlinkSVG Type:Icon Colour: WhereWhat should this hyperlink go? Options:

    Resource ID - The resource ID that the buttoncolour should link to External URL - An external url (e.g. https://www.google.co.uk)  Modal - The IDbe of the modalicon? popupDefault asBlue definedLight. in

      Form Heading: Heading content above the form. Default empty. (If left empty will use lexicon variable).

      Form Content: Content above the form. Default empty. (If left empty will use lexicon variable).

       
      Global Settings for the calculator (context based and lexicons)

      This is a preconfigured form and uses settings and variables in:

      Website Settings (found on the Modx dashboard, see figure 3)

      website-settings.png

      figure 3

      Under website settings go to Cost Calculator:

      cost-calcultor-config.png

      figure 4

      To manage settings for other contexts, select context under the ModalChoose PopupContext dropdown. (seen in image above).

      Lexicons 

      Tooltips, placeholders and general content block

      Scroll to ID - The section that you would likefor this buttonform toand scrollthe to.results Definedfully byuse Layoutslexicons. To

      Hyperlinkaccess Destination: The location where this hyperlink shouldlexicons go to. Relevant to the Hyperlink"cog" Typeicon setting.

      Hyperlink Colour: The colour ofat the hyperlink. Default Light Blue.

      Font Size: Select the text size from the pre-defined list of sizes. Default Regular.

      Font Awesome Icon: Font Awesome Icon to use to the left of the hyperlink, see (https://fontawesome.com/icons?d=gallery) for icons that can be used.

      For Example: Star icon (https://fontawesome.com/icons/star?style=solid) the value to be used would be fa-star.

      Open in new window?: Should this link open in a new window?

      Alignment: What position should this sit within the layout. Left, right or centre. Default Left.

      Arrow Position: Should the arrow display to the left ortop right of the link.Modx Defaultdashboard Right.and select Lexicons.

      lexicons.png

      figure 5

      To find lexicon values for cost calculator, select Waterlogic -> cost_calculator -> en (namespace -> topic -> language) where "en" is the language to are going to edit.

      lexicons-namespace-topic.png

      figure 6

       

      Sample Output:

      sample-cost-calculator.png