Submitted by dderkits on 2025/03/17 17:13

Scenario:

1) Create new Item X, containing a text string such as "this is original text".

2) Create new Item Y and type "[[" within Item Y to bring up the "Embed Link to..." dialog.

3) In Item Y, use the dialog to embed a link to Item X (with "Use Item Text" checkmarked in the dialog).

4) Now, Item Y displays a clickable link ("this is original text") that points to Item X.

5) Modify the text of Item X, such as "this is MODIFIED NOT original text".

Is there a way to update/refresh Item Y such that Item Y now displays the clickable link "this is MODIFIED NOT original text" that points to Item X?

Thanks

Comments

It is "feasible" but a bit complex:

  1. Use the Instr function to find the position of the string "<A href=" & chr(34) & "about:" & ItemID & chr(34) & ">"
  2. Use the Instr function to find the position of the next "</A>"
  3. Set the field value to something like Left(Field1,i) & "<A href=" & chr(34) & "about:" & ItemID & chr(34) & ">" & NewItemText & Mid(Field1,j)
    (where i and j are the position returned by step 1 and 2 respectively)
How do I ?