CustomRightClickMenu icon indicating copy to clipboard operation
CustomRightClickMenu copied to clipboard

Text Input

Open Destroyer555 opened this issue 2 months ago • 2 comments

Is there a way to add an option where when you select a script that it will auto type an address in the search field? Basically an autofill option thanks.

Destroyer555 avatar Dec 02 '25 22:12 Destroyer555

By search field do you mean the search field on a page (so youtube or something) or the search page at the top of the browser (also known as the omnibar)?

SanderRonde avatar Dec 02 '25 22:12 SanderRonde

On a webpage.

Let's say you are filling out a form and you want to be able to right click and you my address or telephone number in the right click menu. I use firefox.

Thanks for the prompt reply.

On Tue, Dec 2, 2025 at 5:44 PM Sander Ronde @.***> wrote:

SanderRonde left a comment (SanderRonde/CustomRightClickMenu#88) https://github.com/SanderRonde/CustomRightClickMenu/issues/88#issuecomment-3604256926

By search field do you mean the search field on a page (so youtube or something) or the search page at the top of the browser (also known as the omnibar)?

— Reply to this email directly, view it on GitHub https://github.com/SanderRonde/CustomRightClickMenu/issues/88#issuecomment-3604256926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3TA6XJBSO7OY2CS4I4MNT37YI5BAVCNFSM6AAAAACN3FQS7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMMBUGI2TMOJSGY . You are receiving this because you authored the thread.Message ID: @.***>

Destroyer555 avatar Dec 02 '25 23:12 Destroyer555

Hey sorry for the extremely late reply. You could do this with this script:

const contextData = crmAPI.contextData;
if (contextData.target && ['TEXTAREA', 'INPUT'].indexOf(contextData.target.tagName.toUpperCase()) !== -1) {
    contextData.target.value = '0612345678'; // <- Your phone number or email
}

Tbh I'd recommend browser autofill over this but this should do it!

SanderRonde avatar Dec 28 '25 12:12 SanderRonde