This topic is locked

Disable fields in edit page with conditions

7/3/2008 1:48:19 AM
PHPRunner General questions
M
marpunta author

Hi again
What i am trying to do is

if a field with a datetime field is bigger than today

i want to disable another field
I already have learned how to use the if statement

but i dont have a clue about disabling fields in the edit proccess and where to put

the lines of code
Sorry for too many questions during last days

but as we say here in Greece

"the enemy of a good thing is a better thing" <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=8907&image=1&table=forumtopics' class='bbc_emoticon' alt=';)' />

J
Jane 7/3/2008
M
marpunta author 7/3/2008

Hi Jane
I have already checked this thread

but the thing is that at first

i am doing an inline edit so i dont have an edit page

and second

i beleive this code is for a dropdown field that changes

In my case i just want to compare a datetime field with today

and then disable some fields
I conclussion i still dont know where to put the code

and how to compare dates with today value
Thank you

You have already been a great help <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=30766&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />

M
marpunta author 7/4/2008

Hi again
Still trying with NO LUCK

Please if anyone can help because this is the last thing so i can

finish the project.

So this is what i am trying to do
During an inline edit i just want to compare a datetime field with todays datetime

and then if today is bigger or smaller disable some fields <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=30790&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

J
Jane 7/7/2008

Hi,
unfortunately there is no easy way to do that for Inline Edit (this task requires a lot of custom coding in the generated files).