Page 1 of 1

Copy of text in browse only form

Posted: Sun Jul 11, 2021 12:21 pm
by sputs
Hi,

Is there a way to make text selectable in a browse only form to copy paste (to google translate), without having it open the edit view. Don't need the edit view.

Re: Copy of text in browse only form

Posted: Sun Jul 11, 2021 3:02 pm
by kev1n
Add this JavaScript in your form's Custom Code:

Code: Select all

 $("DIV[id^='nucell']").css({userSelect: 'text'});

Re: Copy of text in browse only form

Posted: Sun Jul 11, 2021 5:23 pm
by sputs
Hi Kevin,

If I enter the whole string it gives an error.

Re: Copy of text in browse only form

Posted: Sun Jul 11, 2021 6:35 pm
by kev1n
What error?

Re: Copy of text in browse only form

Posted: Sun Jul 11, 2021 7:23 pm
by sputs
It's still not allowing me to select and copy the text.

Code: Select all

<div id="nucell_0_1" data-nu-row="0" data-nu-column="1" class="nuCellEven nuBrowseBorderTop nuBrowseTable" style="text-align: left; overflow: hidden; width: 930px; top: 27px; left: 179px; height: 20px; position: absolute; user-select: text;" data-nu-primary-key="1414035670998396928" onclick="nuSelectBrowse(event, this)">@Neobaianismo vamos fazer uma nova epidemia da dengue na argentina</div>

<div id="nucell_1_1" data-nu-row="1" data-nu-column="1" class="nuCellOdd nuBrowseTable" style="text-align: left; overflow: hidden; width: 930px; top: 54px; left: 179px; height: 20px; position: absolute; user-select: text;" data-nu-primary-key="1414063227034558466" onclick="nuSelectBrowse(event, this)">Já é a 7x seguida q eu vejo o vídeo do pânico botando dengue na Argentina</div>
Modsec gave an error. Disabled it to enter the JS.

Re: Copy of text in browse only form

Posted: Tue Jul 13, 2021 2:34 pm
by sputs
Issue solved.

JS Code from Kevin to place into 'Cuscom Code' of the form:

Code: Select all

function nuSelectBrowse() {
}

$("DIV[id^='nucell']").css({userSelect: 'text'});