42
Views
2
Comments
How can I set the a block as a source of iframe html element?
Application Type
Reactive

I have a iframe html element in my screen, that can load and unload various blocks in it through an input parameter Source. How can I pass block as a source to it?

2022-04-25 10-23-04
edTheEngineer

I believe I Frames need a screen URL. Perhaps put all the blocks on one screen, and an input parameter to determine what block is shown. The URL to the screen will need an input parameter to determine what block is shown

On the screen with the blocks, you can have lots of if statements to ensure only one block is shown in the iFrame


If In1 =1

Block1

If In1 = 2

Block2


etc

UserImage.jpg
Aman Kumar Bhardwaj

Hi @edTheEngineer,


With your approach, all the blocks will be loaded on the screen, but only a specific block will be shown as per the input parameter. But, in this case, all blocks will be loaded in the memory.
I need a approach to load a particular block only in iframe HTML element.


Thanks!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.