Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Subsitute( "[abc]" ; acc:xyz) Whats the [] used for... HTML..

Featured Replies

Hi I have attach a FM file in a zip...

 

And have snippet that does nothing but show my problem,

for step through with debug

Basically I have a  HTML page or my  Invoice format

And , then through substitution command,  I fill the format with data

 

This might even be a Html question.. not that familiar with its side  <div neither  </div>

 

All the previous older lines of code work.. in my script except  the last 2 new lines.

Code was written long ago by another.

still does except added new fields for counting 'Texting' or displaying new field counter to invoice format

 

Testing, debugging,  I add this new texting field by cut pasting the 'paging code' another similar field counter that worked same,  by  using Dreamweaver my editor...

 

I think  the problem is of the first line of code... the template.

I not sure how this was all created in the first place or maybe some elements are missing ID or titles

 

 

same but part of attached
Invoice form SNIPPET

 

<div style='POSITION: absolute; TEXT-ALIGN: right; WIDTH: 101px; FONT-FAMILY: Arial; HEIGHT: 15px; FONT-SIZE: 10px; OVERFLOW: hidden; TOP: 421px; LEFT: 85px'>Ref: time on account</div>   

 <div style='POSITION: absolute; TEXT-ALIGN: center; BACKGROUND-COLOR: #ffffff; WIDTH: 51px; FONT-FAMILY: Arial; HEIGHT: 15px; FONT-SIZE: 10px; OVERFLOW: hidden; TOP: 403px; LEFT: 319px'>40:00</div>


Then code has these substitution commands to lay the data to form


Substitute ( $inv_text; "[acc_billing_texting_count]"; fnNumberFormat ( Billing::acc_billing_texting_

count; 2 ;"." ; ","))

 

 

that's all :sad:   

 

 

 

 

testSub_Html.zip

Substitute ( $inv_text; "[acc_billing_texting_count]"; fnNumberFormat ( Billing::acc_billing_texting_
count; 2 ;"." ; ","))
 
In your example, the square brackets are not used for anything; they are simply part of the search string.
  • Author

First thanks for your reply, usually I post it and figure it out b4... I am grinding on this one... probably cause i don't understand CSS..

 

I understand subst pretty well

 

Its the rest of the code  or the populating my data in form,, substituting within the Htlm <Div> objects in html template.

 

  <Div  </Div>  to find  the one to substitute on..

 

as the good code suggest, subst code for original code seems to work,

 

its just my 2 lines of code I added duplicating doesn't work

  • Author

Conclusion for me... I finally figured

 

subst (x;  "[name]"           the [] is part of the search..

The form created in dreamweaver       would actually have  [name]     [company]   [address1]   in it.. The Absolute Call in the <Div   or html code  puts the data at the right xy location on page

My problem in the one piece of code    retesting it, I guess it never really worked when tried in other account##

And real problem was the creation of the template form .. once figured, the subst command found the right spot in $inv_text

 

 

Thks

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.