Reputation: 61
in xpages, as i know that only editable field able to get value (retrieve) from context. My question: how hide field using css or java script in xpages so i can still get value from context?
Thank you
Upvotes: 0
Views: 1502
Reputation: 61
Thanks for all your answer. This question has solved, i just import CSS from domino : \data\domino\java\xsp\theme\oneuiv2.1 Then i selected the field and chosen field hidden Done, now the field value able to transfer from context
Thanks All :)
Upvotes: 0
Reputation: 30960
Use style="display:none"
as inputText control's property. This will render the control but will hide it. You can assign values on client side to this control.
<xp:inputText
id="inputText1"
style="display:none"
value="#{...}">
</xp:inputText>
In client side JavaScript you can hide an inputText control with
document.getElementById("#{id:inputText1}").style.display = 'none'
but this is only necessary if you want to show it first and hide it later by a e.g. button click.
Upvotes: 2
Reputation: 15739
Another option may (depending on requirements) be to use the Hidden Input control. You may need to click the Other... button in the Controls Palette or customise the palette to access it. The palette options can be customised by right-clicking in the Controls Palette and selecting Customize Palette...
Upvotes: 1