You need to sign in to do that
Don't have an account?

update <p> with the field value until
Hello!
Please help me with my VF page.
i need to update <p> from the CTPHARMA__Activity__c.SF1_Status__c (text formula) until y < 6 && z && u != "Win32" returns true
Please help me with my VF page.
i need to update <p> from the CTPHARMA__Activity__c.SF1_Status__c (text formula) until y < 6 && z && u != "Win32" returns true
<apex:page standardController="CTPHARMA__Activity__c" id="page" docType="html-5.0"> <style> .good{ text-align:center; background-color: MediumSeaGreen; font-weight: bold; color: white; } .bad{ text-align:center; background-color: Tomato; font-weight: bold; color: white; } .ugly{ text-align:center; background-color: LightGray; } </style> <apex:form styleClass="{!if(CTPHARMA__Activity__c.SF1_Status__c == 'Подтвержден территориально','good',if(CTPHARMA__Activity__c.SF1_Status__c == 'Не подтвержден территориально','bad','ugly'))} "> <p id="text"></p> </apex:form> <script> myFunction(); function myFunction(){ var x = {!CTPHARMA__Activity__c.SF1_Status__c}; var y = {!CTPHARMA__Activity__c.SF1_Attempts__c}; var z = {!CTPHARMA__Activity__c.SF1_Request_geo__c}; var u = window.navigator.platform; do{ document.getElementById("text").innerHTML = x; } while (y < 6 && z && u != "Win32") } </script> </apex:page>
thanks
All Answers
SF1_Status__c
thanks
var x = ' {!CTPHARMA__Activity__c.SF1_Status__c} ' ;
Is it possibe to show SF1_Status__c, wait 1 second show SF1_Status__c (updated) and do until SF1_Request_geo__c = true?