Skip to main content
Liphou
Inspiring
April 29, 2019
Question

Retune conditional text (visible = false)

  • April 29, 2019
  • 1 reply
  • 1307 views

Hello everyone, it's been a long time.

Is it possible to return the non-visible conditional text? with the search it is not possible.
I try to make a list with the texts cache but they must absolutely not move the text.
A beginning of track, commende for me to start the script, thank you

Philou

/-----------------------/

Bonjour à tous, cela fait très long temps.

Est-il possible de retourné le texte conditionnel non visible? avec la rechercher c'est pas possible.

Je cherche a faire une liste avec les textes cache mais ils ne doivent absolument pas faire bouger le texte.

Un début de piste, de commende pour moi commencer le script, merci

Philou

This topic has been closed for replies.

1 reply

Community Expert
April 29, 2019

Hi Philou,

yes, that's possible.

Look for hiddenTexts in a Story, TextFrame, Footnote, Cell or even Note object.

Just a sample.

Hide some conditional text in a text frame.

Select the text frame.

Get the contents of the all hidden texts of the story of the text frame:

app.selection[0].parentStory.hiddenTexts.everyItem().texts.everyItem().contents

Regards,
Uwe

Liphou
LiphouAuthor
Inspiring
April 30, 2019

Hello/Bonjour Laubender​,


Thank you for your reply.

   

   $.writeln('Selection : ' + app.selection[0].hiddenTexts.everyItem().texts.everyItem().contents); 


I used the code on a selection, it returns me well hidden texts, is it possible to find what is the name of the condition? and find the page number of the hidden text?

My parents use is not very good !!

$.writeln('le Parent : ' + app.selection[0].hiddenTexts[1].parent.constructor.name);

My final goal is to create a list style with the different texts chaché with their pagination.


Thanks for the continuation ...

/-----------------------------------/

Merci pour votre réponse.

   $.writeln('Selection : ' + app.selection[0].hiddenTexts.everyItem().texts.everyItem().contents); 

J'ai utilisé le code sur une sélection, il me retourne bien les textes caché, est-il possible de retrouvé  quel est  le nom de la condition? et de trouv" le numero de page du texte caché?

Mon utilisation des parents n'est pas très au point !!

$.writeln('le Parent : ' + app.selection[0].hiddenTexts[1].parent.constructor.name);

Mon but final est de crée un style liste reprenant les différent textes chaché avec leur pagination.

Merci pour la suite ...

Liphou
LiphouAuthor
Inspiring
April 30, 2019

For the page I use this which seems to me function (to test more deeply)

Pour la page j'ai utilise ceci qui me semble fonction ( à test plus en profondeur)

$.writeln('\rle text hiddenTexts[1]: ' + app.selection[0].hiddenTexts[1].storyOffset.parentTextFrames[0].parentPage.name + '\r\r');