Expand my Community achievements bar.

Transform field

Avatar

Level 1

Can we, at runtime, transform in javascript (or FormCalc) a text field to a button ? Once someone have enter data in a field, I need to tranform this field in button (the context to explain why I need to do that is fairly complexe).

Thanks

Bruno

2 Replies

Avatar

Former Community Member

You cannot transform and object, but you can have a button sitting there doing nothing and activate it when you are ready to use it. Is this on a single field or is it on many fields? Maybe it woudld be worth explaining the use case ...there may be other ways ...

Paul

Avatar

Former Community Member

You could probably use a positioned layout and have both objects sitting on top of one another.  You would just have make sure via script that only one of them is visible at a time.  Make the other "hidden" so it cannot be clicked (note: it must be "hidden" not "invisible").