Hi,
I am having an important issue, based on our website requirements, I successfully make an integration in Flexicontent fields with
www.planyo.com/
a hosted online booking solution.
Planyo provides a script that looks like this:
Code:
<iframe width='720' height='250' scrolling='auto' frameborder='0' src='https://www.planyo.com/embed-calendar.php?resource_id={{field67##0}}&calendar={{field66##0}}&style=multi-month&month-count=5&background=%23FFFFFF&custom-language=EN&'></iframe>
As you will see, I have replaced the resource ID and the calendar ID with a Flexicontent field that I previously created.
Now, I have 3 fields, the first one is the 'Calendar ID' field and the 'Resource ID' field where a user need to add his own calendar ID and resource ID when adding a new item.
The third field is invisible on both item submission form, and the third field has the 'Prefix text of every value' set to:
Code:
<iframe width='720' height='250' scrolling='auto' frameborder='0' src='https://www.planyo.com/embed-calendar.php?resource_id={{field67##0}}&calendar={{field66##0}}&style=multi-month&month-count=5&background=%23FFFFFF&custom-language=EN&'></iframe>
And the 'Default value' of this third field is
When filling information in the two previous fields, everything work as expected and the third field shows the exact information required on the frontend.
Now, the issue is that, not all users do have access to add their information about their Planyo account as they need to purchase the required subscription to get access to the Planyo feature.
But our issue is that, since we have set the third plugin to 'Default value use to 'The above & also display it instead of empty'. And of course, the third field is visible on the frontend even if the user has not provided information about the two previous fields!
What we need to be able to do is simply make the third field hidden if information is not provided in the previous two fields! Is it possible to handle this?