Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7749221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:59:18+00:00 2026-06-01T10:59:18+00:00

I am customizing the ribbon toolbar and adding a button to it.Whenever I click

  • 0

I am customizing the ribbon toolbar and adding a button to it.Whenever I click on that button,it will open a aspx page allows authors to select some data, which gets appended to the
existing RTF field content.

Our requirement is to return the data as link i.e anchor element, whenever author clicks the link-popup page has to be opened and allow author to select the other options; upon clicking of submit button new value must be replaced with old value.

Challenges are:

Currently popup page is opened by a javascript- which is an entry point to display the aspx page. Author selects data and submit, it is this javascript which returns the value and appended to RTF field.
Now when the popup page is opened as a independent page, how to return the data from it.

Early response will be appreciated.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:59:20+00:00Added an answer on June 1, 2026 at 10:59 am

    If its just appending content to an RTF field, wouldn’t it be a lot less work to use a Custom URL for that?

    A Custom URL is a link which you can set on the Schema field which will show in the Component as a link on the title of that field. This will open a popup with the specified URL and from there you can return directly to the field (allowing you to add to, or replace existing content).

    Documentation on this topic can be found on http://docportal.sdl.com/sdltridion (direct topic link)

    An example Custom URL HTML page for overwriting or appending content to a text field would look something like this:

    <html>
    <head>
    <title>Custom URL example</title>
    <style>
    body {
        background:#fafafa;
        font-family:arial,helvetica,sans-serif;
        font-size:12px;
        line-height:1.5em;
    }
    a {
        color:#000;
        font-weight:bold;
        text-decoration:none;
    }
    a:hover {
        color:#666;
    }
    </style>
    <script type="text/javascript" language="javascript" src="/WebUI/Core/Controls/Popup/PopupInit.js"></script>
    <script language="JavaScript">
        function overwrite(value) {
            var fields = window.dialogArguments.getFields();
            if (fields && fields.length > 0) {
                if (fields[0].getValues() != null && fields[0].getValues()[0] != null && fields[0].getValues()[0].length > 0) {
                    if (!confirm('This will overwrite the existing content of the field. Continue?')) {
                        return;
                    }
                }
                fields[0].setValues([value]);
                window.close();
            }
        }
        function append(value) {
            var fields = window.dialogArguments.getFields();
            if (fields && fields.length > 0) {
                var current = '';
                if (fields[0].getValues() != null && fields[0].getValues()[0] != null && fields[0].getValues()[0].length > 0) {
                    current = fields[0].getValues()[0];
                }
                fields[0].setValues([current + value]);
                window.close();
            }
        }
    </script>
    </head>
    <body>
        <h1>Make a choise</h1>
        <p><a href="javascript:overwrite(' - dummy content - ')">overwrite current value</a></p>
        <p><a href="javascript:append(' - dummy content - ')">append to current value</a></p>
    </body>
    </html>
    

    This is an HTML page which you should place somewhere in the ..\Tridion\web folder (I usually create a CustomURL sub directory in there, so you can reference it like: /CustomUrl/example.html)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am customizing the ribbon toolbar and adding a button to it. Whenever I
I am customizing the ribbon toolbar and adding a button to it. Whenever I
I am customizing the ribbon tool bar by adding a button to it in
I am customizing the Tridion ribbon toolbar to add a button. How can I
During practice of customizing VirtualPathProvider, I found that it the custom VirtualPathProvider can be
I'm customizing the product view page and I need to show the user's name.
I'm working on customizing a SharePoint document library called Quality Documents so that when
I'm customizing a plugin that uses css3's rgba throughout, I'm trying to figure out
I'm customizing the UIButton programmatically here: button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setSelected:YES]; button.frame =
I have problem with customizing each page using pagecontrol and UIScrollView. I'm customizing Page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.